Jump to content
Sign in to follow this  
TrenchClub

Boat scripting problems

Recommended Posts

I've got a VIP and a boat, when triggered the boat is to come in to shore, pick up the VIP, and then leave.

However, no matter what I do no manner of different command combinations will get the VIP to get into the boat without the boat beaching itself (and thus being unable to leave).

Is there any way to make this work or do I have to spawn an empty boat already at the shore?

Share this post


Link to post
Share on other sites

Where in the following script would I insert the setvelocity command? And in what form would I have to type it out to get the boat to move 15km/h north when activated?

if(isServer)then

{

vip_defence_group = group vip_defence_teamleader;

[vip,vip_defence_officer] joinSilent vip_defence_group;

{

assignAsCargo exfil boat

}

foreach units vip_defence_group;

(units vip_defence_group) orderGetIn true;

waitUntil {count crew exfil_boat == 5};

exfil_boat_group = group exfil_boat;

_exfilpoint =_this select 0;

_wp2ex = exfil_boat_group addWaypoint [getmarkerpos _exfilpoint, 0];

_wp2ex setwaypointtype "MOVE";

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×