Jump to content
Sign in to follow this  
lozz08

Using score to "buy" weapons

Recommended Posts

Hello all, I am attempting to create a zombie survival mission, in which there are guns on walls in certain places that you can buy with score you made by killing zombies.

The question is really in two parts:

1. I am able to addaction to an object and give the calling player a certain weapon and mags with my action's sqs file.

_caller = _this select 1

OldWeapon = primaryWeapon _caller;

_caller removeWeapon OldWeapon;

{_caller removeMagazine _x} forEach magazines _caller

_caller addmagazine "someammo";

_caller addweapon "somegun";

_caller addmagazine "someammo";

_caller addmagazine "someammo";

_caller addmagazine "someammo";

_caller addmagazine "someammo";

_caller addmagazine "someammo";

};

What I need is a little section in the script that will A) not allow the weapon to be given if score is below some value, and play a sound if that occurs, and B) remove a certain amount of score if the player can buy the weapon.

2. I need to create a simple object addon pbo that will be a white outline of a picture of the gun player wishes to buy, that I can move in the editor onto a wall or something. (Ie. Nazi zombies from COD)

Share this post


Link to post
Share on other sites

Well, NVM on the score thing, I figured that out. I'll post my addon Q in the addons & mods section i guess

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  

×