Jump to content
Sign in to follow this  
matteo1944

create object or soldier then delete it

Recommended Posts

How to create object or soldier in front of player then delete it in a second or two?

Share this post


Link to post
Share on other sites

Example

;distance from player
_dist=2

;create unit and set post in front of player
_unit = "man" createVehicle getpos player
_pos = [(getPos player select 0)+(sin (getDir player)*_dist),(getPos player select 1)+(cos (getDir player)*_dist),(getPos player select 2)]
_unit setpos _pos

;wait 2 seconds
~2

;delete unit
deleteVehicle _unit

exit

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  

×