Jump to content
AlanReeder

Firestation Help

Recommended Posts

The numbers have nothing to do with which direction your units face in the station, In the script it tells the unit what direction to face.

GameObjectList l4;

Game::CollectObstaclesOnVirtualObject(VO_ENGINE03, l4, ACTOR_VEHICLE);

if(l4.GetNumObjects() == 0 && !Possible)

Possible = true;

if (Possible)

{

ActorList l1 = Game::GetActors(VO_FP5);

ActorList l2 = Game::GetActors(VO_TURNTO5);

} else

For example VO_FP5 is where the unit is told to go, VO_TURNTO5 tells it what direction to face and it then pulls into its parking Virtual object which in this code is VO_ENGINE03 so where you point your unit is based on the location of two virtual objects basically

Edit: There is a bit more to it than that but in most cases that is the just of it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...