Jump to content
Sign in to follow this  
EACC

quick help with script (Addaction)

Recommended Posts

Hey i need help with a script to drag out dead players and Ai from vehicles.

the problem is that i give the action to players vehicle since adding to the player give some problems.

so how can i find the player in (vehicle player) that the script is assigned to?

Thanks!

// EACC

#Theaction

?vehicle _player != _player : _Act = vehicle _player addaction ["Pull out Player from vehicle", "Pullout.sqs"]

Pullout.sqs

_Player = _this select 0

_Aliveplayer = _this select 1

_id = _this select 2

#Pullout

_Player removeAction _id

_Aliveplayer playmove "Medic"

~4

_player setpos (position _aliveplayer)

exit

Edited by EACC

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  

×