Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
fill up amoo crates
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: fill up amoo crates (Read 613 times)
0 Members and 1 Guest 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?
Logged
macguba
Former Staff
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.
Logged
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
»
Logged
UberKreb
Guest
Re:fill up amoo crates
«
Reply #3 on:
08 Apr 2003, 02:43:47 »
Init field will be fine for executing it.
Logged
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
Logged
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.
Logged
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?
Logged
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
Logged
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
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.
Logged
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
Logged
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
Re:fill up amoo crates
«
Reply #10 on:
08 Apr 2003, 11:24:50 »
:oYou've got it!!
;D
Logged
Not all is lost.
SnakeFart
Guest
Re:fill up amoo crates
«
Reply #11 on:
08 Apr 2003, 11:25:57 »
COOL
SOLVE!
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
fill up amoo crates
Top of page