Jump to content
Sign in to follow this  
3ernardo

Making an init value work for a unit after it respawns in multiplayer

Recommended Posts

Hi and thanks for helping

 

I'm looking for an answer for hour and can't figure out how to do it, there must be a simple way to make an init value persist after the unit respawns in multiplayer.

For instance, the playable units of my game have this init:

this enableFatigue false; 
this setCustomAimCoef 0.85; 

But as soon as the player dies and respawns those init lines doesn't work anymore. Can somebody give me a hand?

Share this post


Link to post
Share on other sites

Hi, and thanks!

Does it works for all playable units? Or just for the one marked as player?

 

Edit----

Couldn't make it work, I put the exact lines I've posted here on a onPlayerRespawn.sqf file and it didn't worked, I've been researching but couldn't figure it out.

Can someone elabore the answer a bit more?

 

Thanks

Share this post


Link to post
Share on other sites

you'd replace this with player

Thank you very much kylania, that worked.

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  

×