Jump to content
Sign in to follow this  
cobra@pulse

If players not present then delete parachute

Recommended Posts

Hello there guys.

Right then, down to business. I need some help with a script (i.e. where to start).

Basically im making an MP mission where the guys start in parachutes, however, if the players AI and he is not present then the parachutes are still spawned and look silly really.

Is there anyway I can have a script that checks if theres a player in the parachute, and if not, deletes it?

Cheers,

Cobra

Share this post


Link to post
Share on other sites

Taking a pure guess here but, doesnt command "driver" return the unit in a para?

Share this post


Link to post
Share on other sites

You would save a lot of time by just making the command like this in init.sqs:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_chute = "ParachuteWest" createvehicle [0,0,0]

_chute setpos [(getpos player select 0),(getpos player select 1),100]

player moveindriver _chute

Share this post


Link to post
Share on other sites

Never mind previous thing that was here, twas a load of bollocks of me rabling.

Cheers mate, works a treat

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  

×