Home   Help Search Login Register  

Author Topic: fill up amoo crates  (Read 616 times)

0 Members and 3 Guests are viewing this topic.

SnakeFart

  • Guest
fill up amoo crates
« on: 08 Apr 2003, 01:14:38 »
im using a ranger mod and i want to know if its possible to add every weapon to an ammo crate without have to  to put  this addweapon...blah blah blah ..is there an init that will fill an ammo crate up completly?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:fill up amoo crates
« Reply #1 on: 08 Apr 2003, 01:36:09 »
Put this in init.sqs

"_x addmagazinecargo {M16,99}; _x addweapon {m16}" forEach [ammocrate1,ammocrate2]

Syntax even more unguaranteed than usual, as its late, but if you get the idea it will save you writing it out over and over again.
Plenty of reviewed ArmA missions for you to play

SnakeFart

  • Guest
Re:fill up amoo crates
« Reply #2 on: 08 Apr 2003, 02:40:15 »
ok where do i put that at? in Init or script?

sorry im new to all of this
« Last Edit: 08 Apr 2003, 02:40:39 by SnakeFart »

UberKreb

  • Guest
Re:fill up amoo crates
« Reply #3 on: 08 Apr 2003, 02:43:47 »
Init field will be fine for executing it.

SnakeFart

  • Guest
Re:fill up amoo crates
« Reply #4 on: 08 Apr 2003, 02:56:18 »
and to executing it i have to make  it with not pad and then sve it as an sqs file right?...and what is the correct init to remove all weapons?

i have: this removeallweaspons;

but that then says error

BHD Mod

  • Guest
Re:fill up amoo crates
« Reply #5 on: 08 Apr 2003, 03:47:32 »
To remove all weapons from a unit type in the init field: removeallweapons this.

SnakeFart

  • Guest
Re:fill up amoo crates
« Reply #6 on: 08 Apr 2003, 04:03:16 »
ok so u put this after removeallweapons and not in front of it?...and do i do it in the same order to take out ammo?

SnakeFart

  • Guest
Re:fill up amoo crates
« Reply #7 on: 08 Apr 2003, 09:20:34 »
comeone plz soneone answer im stuck till i get a correct answer

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:fill up amoo crates
« Reply #8 on: 08 Apr 2003, 09:41:04 »
removeallweapons this

in the init field will remove all weapons from the object in which init field the command is.

the vise versa method goes only for removeallweapons command. so if you do anything else you put in THIS in front of the command and not after like in this particular case.
Not all is lost.

SnakeFart

  • Guest
Re:fill up amoo crates
« Reply #9 on: 08 Apr 2003, 11:21:39 »
ok so to perfect it ...if i want to remove all the weapons from a person i type

removeallweapons this  and they wont have anything

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:fill up amoo crates
« Reply #10 on: 08 Apr 2003, 11:24:50 »
 :oYou've got it!! :o   ;D ;)
Not all is lost.

SnakeFart

  • Guest
Re:fill up amoo crates
« Reply #11 on: 08 Apr 2003, 11:25:57 »
COOL

SOLVE!