FANDOM


Description
The following script will cause a squad or group to move along a predefined path or simple go to a location. If using a path, the path must be defined with the scripting tool and have a tag defined.
Code
State
{
   StateName = "INIT",
   OnOneTimeEvent
   {
      Conditions =
      {
      },
      Actions =
      {
         SquadGoto { 
            Tag = "creep",
            TargetTag = "wp_path"
         },

         SquadGroupGoto {
            Group = "group1",
            TargetTag = "wp_path"
         }
      },
   };
};
Notes
  • Tag is the tag given to the squad or group you want to move.
  • TargetTag is the tag of the path you want them to follow. Optionally, it could be the tag of any entity you want the target to move to.
  • Group is the name of the group you want to move.
  • You will need to add the tags to both from the Entity Properties window.
  • You may use any tag name you wish.
  • You can add any Script Event Condition in the condition section to force this script to only trigger when the condition is true.


.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.