Guest Posted April 11, 2018 Hey i would like to remove the players backpack and later replace it with a new but i am stuck on the removing part... removeBackpack this; why this doesnt work :S ? Share this post Link to post Share on other sites
stanhope 409 Posted April 11, 2018 How and where are you executing it? try: removeBackpack player; 1 Share this post Link to post Share on other sites
Guest Posted April 11, 2018 i would make a trigger an when the player enters the triger his backpack should be removed Share this post Link to post Share on other sites
Guest Posted April 11, 2018 3 minutes ago, stanhope said: How and where are you executing it? try: removeBackpack player; Thanks mate this worked :) you are my hero :) Share this post Link to post Share on other sites
Grumpy Old Man 3540 Posted April 11, 2018 4 minutes ago, Kleine Bea said: Hey i would like to remove the players backpack and later replace it with a new but i am stuck on the removing part... removeBackpack this; why this doesnt work :S ? Try to read through one of various existing arma scripting guides, available as .pdf. Shouldn't take more than 1-2 hours and will serve as a well of knowledge and will most likely solve 90% of all entry-level questions related to scripting. Try Mr-Murrays to get you started. Cheers 1 Share this post Link to post Share on other sites
Guest Posted April 11, 2018 Thanks 24 minutes ago, stanhope said: How and where are you executing it? try: removeBackpack player; Sry last question ? why does this addBackpack "B_Parachute"; work on player but not with trigger ? Share this post Link to post Share on other sites
stanhope 409 Posted April 11, 2018 Because when you're executing it on a player 'this' refers to the player. When you're doing it in a trigger 'this' refers to the trigger, not the player. 1 Share this post Link to post Share on other sites
Guest Posted April 11, 2018 1 minute ago, stanhope said: Because when you're executing it on a player 'this' refers to the player. When you're doing it in a trigger 'this' refers to the trigger, not the player. But when i only put this in the trigger addBackpack "B_Parachute"; there comes the error there is dosent work aswell :S how should it be like ? please Share this post Link to post Share on other sites
stanhope 409 Posted April 11, 2018 https://community.bistudio.com/wiki/addBackpack Look at the syntax, you need to give the command a unit, like 'player'. 1 Share this post Link to post Share on other sites
Guest Posted April 11, 2018 sry i realy tried it for 20 minutes i dont get it. i tried all what i can 10 minutes ago, stanhope said: https://community.bistudio.com/wiki/addBackpack Look at the syntax, you need to give the command a unit, like 'player'. Share this post Link to post Share on other sites
stanhope 409 Posted April 11, 2018 player addBackpack "B_Parachute"; 1 Share this post Link to post Share on other sites
Guest Posted April 11, 2018 Thank you. i can prommis you i tried this probably spelling mistake :S thanks <3 Share this post Link to post Share on other sites