Jump to content
Sign in to follow this  
Guest

Remove player backpack

Recommended Posts

Guest

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

How and where are you executing it?
try: removeBackpack player;

  • Like 1

Share this post


Link to post
Share on other sites
Guest

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
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
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

  • Like 1

Share this post


Link to post
Share on other sites
Guest

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

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.

  • Like 1

Share this post


Link to post
Share on other sites
Guest
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

player addBackpack "B_Parachute";

  • Like 1

Share this post


Link to post
Share on other sites
Guest

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×