Home   Help Search Login Register  

Author Topic: Ammo crate script  (Read 569 times)

0 Members and 1 Guest are viewing this topic.

B-2-0

  • Guest
Ammo crate script
« on: 18 May 2003, 15:06:51 »
Hi guys, just a quick one!

Instead of typing all the weapons i want to add to an ammo crate into it's init field.....is it possible to create a script, for example, ammocrate.sqs, type all the lines in there and just have [] exec ammocrate.sqs in the init field??

Thanx in advance! :thumbsup:

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ammo crate script
« Reply #1 on: 18 May 2003, 18:43:30 »
yup

you might want to use

this exec ammocrate.sqs
Plenty of reviewed ArmA missions for you to play

B-2-0

  • Guest
Re:Ammo crate script
« Reply #2 on: 18 May 2003, 20:04:46 »
Thanks for your reply Mac.....i just found out i have to use a seperate script for each crate tho.....not a major problem but is there a way round this??

Knut Erik

  • Guest
Re:Ammo crate script
« Reply #3 on: 18 May 2003, 20:31:13 »
Yes it is. Add this on the top of your script.

_crate = _this select 0

Then use _crate everywhere like this.

_crate addweaponcargo xxxx
_crate addmagazinecargo xxxx

U got it ?  ;) :D