| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Files spread between Dropbox, Google Drive, Gmail, Slack, and more? Dokkio, a new product from the PBworks team, integrates and organizes them for you. Try it for free today.

View
 

command_direct

Page history last edited by Dave Thaler 2 years, 9 months ago

The direct mission scripting command directs a generic mesh to move toward a point or named object.  Previous to version 1.61, it also scripted a neutral or enemy object to go somewhere or fight something, but this behavior is now deprecated (use the add_ai command instead).

 

Attribute  Valid Values  Optional? Description 
name text   The name of a generic mesh object that is being given this command.
targetName text   The name of an object that the generic mesh is to head toward.
pointX 0 to 100000   The x position that the generic mesh object is to move to, in distance left from the right edge of the map.
pointY -100000 to 100000   The y position that the generic mesh object is to move to.
pointZ 0 to 100000   The z position that the generic mesh object is to move to, in distance down from the top edge of the map.
scriptThrottle 0.0 to 1.0   The speed at which the generic mesh object should move.

 

Example 1:

<direct name="A" targetName="B" scriptThrottle="1.0"/>

Result:

The generic mesh object named A will move towards the object B at a speed of 1.0.

 

Example 2:

<direct name="C" pointX="18000" pointY="0" pointZ="100000" scriptThrottle="0.5"/>

Result:

The generic mesh object named C will move to point 18000, 0, 100000 at a speed of 0.5.

Comments (0)

You don't have permission to comment on this page.