OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dmakatra on 04 Feb 2003, 21:47:15

Title: Order and get
Post by: dmakatra on 04 Feb 2003, 21:47:15
How do you make so if anyone types a specific type of ammo in the "[]" box he will get that ammo of that kind.
Title: Re:Order and get
Post by: Pointman on 04 Feb 2003, 22:50:53
I only have CWC, so... What is the [] box you are refering to?
Title: Re:Order and get
Post by: dmakatra on 05 Feb 2003, 15:50:21
like

[M16mag] exec "GimmeMyAmmo.sqs"
Title: Re:Order and get
Post by: Pointman on 05 Feb 2003, 21:21:33
you probably would like to make something like:

[M16Mag,_player] exec "gimmeammo.sqs"

and in the script use the AddMagazine function
Title: Re:Order and get
Post by: dmakatra on 05 Feb 2003, 22:01:11
yes I know, but the problem is that the user of the scriptÂ's (official script) able to use all sorts of ammo. But how do I know witchÂ's ammo thatÂ's what?

Sorry for the Noob behaviour.