Jump to content
djdodo

Making vehicle wait for the player to enter

Recommended Posts

Hi, I want to make a waypoint "Get In" with the SDV.

But even when I sync the players "Get In" to the SDVs "Load" waypoint, the SDV does not move to its next waypoint.

I saw a tutorial on yt, but I can't find it anymore. Only old ones with old editor and menus....

What am I doing wrong?

 

Greets,

Dodo

 

Share this post


Link to post
Share on other sites

So the SDV is Variable Name _vehicle or is _vehicle automatically because it is its waypoint?

And when I want the SDV to wait for the player to return from his mission, I need to make a wait waypoint long enough for the player to exit and the next move again with the code above, right?

Share this post


Link to post
Share on other sites

This was only an example. You need to define the variable first.

In waypoints there are special variables predefined

 

  • this refers to the group leader
  • thisList refers to an array containing each unit in the group
  • (vehicle this) you can combine for vehicle like this

if this is an multiplayer scenario you may need to use some count technique to make sure all players are in veh.

count allplayers == count (allplayers select {_x in (crew (vehicle this))})

returns true if all players in vehicle

 

in singleplayer :

player in (crew (vehicle this))

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

×