Jump to content
Sign in to follow this  
Socrate

Player loose added Action

Recommended Posts

Hi guys,

i've a little problem... i added an action to a player with the addAction commmand. Hwr if the player dies and respawn to the Respawn_west marker he loose the action i added!! is this normal? what's wrong?

If it'is normal how can i add that action again? cause i added it in the init.sqf and if the player respawn the init.sqf isn't executed anymore!

Share this post


Link to post
Share on other sites

Search is a powerful thing...

From one of my other posts...

this addAction ["Call Blitzy","scripts\blitzy.sqf",[],0,false];
this addeventhandler ["killed", {_this execVM "scripts\blitzyaction.sqf"}];

blitzyaction.sqf

waitUntil {alive player};
player addAction ["Call Blitzy","scripts\blitzy.sqf",[],0,false];
if (true) exitWith {};

Share this post


Link to post
Share on other sites

thank you man!

Some of you with a lot of knowledge should update the wiki with this kind of tips!!

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  

×