Jump to content
Sign in to follow this  
cupcake_actual

Trigger affects only the player that activates it?

Recommended Posts

I have a respawn marker inside of a trigger. That trigger, (is supposed to) remove the gear from the player and put them into a vehicle (moveincargo) . All of this is working just fine, But it is affecting other players that are not in the trigger. As in moving the players that are not in the trigger into the vehicle and and removing their gear. 

 

Basically i am using this in the trigger:

 

Activation: indep (they are independent units)

repeating

condition: this

Activation: RemoveWeapons player; player moveInCargo heli;

 

I only want it to affect the player in the trigger. It is a multiplayer DM.

This is to happen every time a unit dies. they respawn on the marker, and the trigger removes their gear and puts them into a heli that is always flying, but it should only happen to the player that is in the trigger.

Share this post


Link to post
Share on other sites

That did cross my mind, but I dont know how to write it. Putting code in the units init would only work for the first time, not on respawn right? I think the onPlayerRespawn.sqf is the way to go, but i have no idea what to do.

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  

×