cupcake_actual 13 Posted November 21, 2015 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
emrak 12 Posted November 21, 2015 A trigger is not necessary for this task. Have you considered using onPlayerRespawn.sqf script? Or for a simpler route, try placing code in each player's init box (in the editor) as shown in this link: http://www.armaholic.com/forums.php?m=posts&q=20889I have not tested this BTW. Share this post Link to post Share on other sites
cupcake_actual 13 Posted November 21, 2015 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
killzone_kid 1330 Posted November 21, 2015 Try this for on activation: {removeAllWeapons _x; _x moveInCargo heli} forEach thisList; Share this post Link to post Share on other sites
cupcake_actual 13 Posted November 21, 2015 Thanks, Killzone_Kid, I'm pretty sure this is what i need, I'll test it out. Share this post Link to post Share on other sites