Jump to content
ENG51INE

Vehicles go to, but do not stay in Fire Station

Recommended Posts

I edited my LAToFireStation script to reflect the new mod I made.  All the vehicles go to the stations and pull into their spots... however... after parking, they immediately say "no room in fire station, vehicle returned to base" and drive away.  I have tried resizing the virtual objects, and that does not work.  Any ideas?

Link to comment
Share on other sites

Make sure you have this at the bottom of you script and the actor lists are defined correctly:

 

if(l1.GetNumActors() > 0)
Vector TurnTo = l1.GetActor(0)->GetPosition();
 
if(l2.GetNumActors() > 0)
Vector Park = l2.GetActor(0)->GetPosition();
 
 
 
 
v.PushActionMove(ACTION_APPEND, Park);
v.PushActionTurnTo(ACTION_APPEND, TurnTo);
v.PushActionWait(ACTION_APPEND, 1.0f);
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...