Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
luks7n

Not all players viewing player's animation

Recommended Posts

Hi,

first of all I would like to say that I'am VERY VERY low skilled at scripting.
 
Said that, I'm creating a basic "script" that allows players to select an option called "build" using addaction on object.
Addaction calls collect.sqf that contains:

i = 0;

while {i<5} do {animplayer = [] spawn {player switchmove "Acts_carFixingWheel";}; i=i+1;sleep 20};
publicvariable "animplayer";

I created this i variable to avoid an issue where players got stucked after sleep time.

 

The problem is that only the player who selects the "build" option can see the animation itself, all others can't.

This might be a problem of global variable but I want the most simple script as possible.

 

Thank you !

Share this post


Link to post
Share on other sites
Sign in to follow this  

×