Jump to content
Sign in to follow this  
bascule42

Adding a task when entering a vehicle: How?

Recommended Posts

OK, adding a task is simple enough, but how would I script it to add the task only when a player has entered an empty vehicle?

What I want to do is this: I have an empty helicopter, and I want to receive a new task only when I have entered the vehicle.

Share this post


Link to post
Share on other sites

Give the empty helicopter a name. Create a empty trigger and write in the condition:

(player in NameOfHeli)

on activation:

taskHeli = player createSimpleTask ["Blablabla"];
...

Share this post


Link to post
Share on other sites

Thanks...I'll give that a go. :)

EDIT: Works fine. Thanks for the help mate.

Edited by Bascule42
'cause we wanna

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  

×