Jump to content
Sign in to follow this  
Stubbinz

Need Help with Magazines....

Recommended Posts

Hey guys, i'm working on a couple of scripts involving making shops.

I have several shops implemented and running fine, its just until i start messing with magazines i find myself in trouble.

How do i go about selling magazines?

Here's what i got;

The Checking script:

if (Player hasWeapon "ACE_bandage") THEN {sellbandage = player addaction ["sell 

Bandage - $5","global\medical\sellbandage.sqs",false,-1,false,false,"false"]} Else 

{player removeaction sellbandage};

The sellbandage.sqs

player removeMagazine "ACE_bandage";
money=money+5;
exit;

I realize the hasweapon is the wrong syntax, but i wanted to detail what i was doing.

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  

×