iTrafficCreation and iScriptedOrders

Home Forums Mods and POG Scripting iTrafficCreation and iScriptedOrders

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #15211
    Joco
    Participant

    After some comments by GrandpaTrout I decided to start this thread to record my and others learnings in this area. I’ve only started on the simple functions at this point but hope to get proof code for preety much all the call patterns in these two packages.


    iTrafficCreation.Start( iMapEntity.FindByName ( "Hoffers Wake Police Headquarters" ) ); // basic traffic in place

    //
    // made a group of 5 corvettes and sent them on a system patrol.
    hgroup traffic_group;
    traffic_group = iTrafficCreation.CustomLocalSecurityPatrol( iMapEntity.FindByName ( "Hoffers Wake Police Headquarters" ), ST_CombatHeavy, 5, A_Police, true );
    Task.Detach ( start iScriptedOrders.SystemPatrol( traffic_group ) );
    //

    I’ll post more as I learn more. Particularly the single ship commands.

    Cheers,
    Joco.


    [url=”http://www.torn-stars.com”][center][img]http://www.torn-stars.com/images/jocosig.gif[/img][/center][/url]

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.