Jump to content
Sign in to follow this  
mattxr

Delete Vehicle After Drops Cetain Height

Recommended Posts

Why wont the paratrooper delete after he reaches 2m off the ground.

Quote[/b] ]

;[this,height] exec "paradelete.sqs"

_unit = _this select 0

_height = _this select 1

@((getpos _unit select 2) < 2)

deletevehicle (vehicle _unit)

deletevehicle _unit

?!isnull _unit : hint "Error - Unit didn't disapear =("

exit

any help.

Share this post


Link to post
Share on other sites

He does get deleted at 2m, but the error message also executes. Add a 0.1 second sleep delay between the second deleteVehicle and the ?! condition.

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  

×