Home   Help Search Login Register  

Author Topic: The command you put in ammo crates to add custom weapons ??  (Read 647 times)

0 Members and 1 Guest are viewing this topic.

Kaneda

  • Guest
Hi sry for n00b question but it has been a while since I have tooled with OFP and editing for that matter. But what is the syntax for adding weapons and ammo to soilders and crates.

Something like      remove all; add weapon "whatever"; add ammo "whatever"



 I just forgot the proper way.

Kaliyuga

  • Guest
Re:The command you put in ammo crates to add custom weapons ??
« Reply #1 on: 08 Apr 2003, 07:05:32 »
 It is :


this addweaponcargo ["weaponname",#]

and

this addmagazinecargo ["magazinename",#]  

for vehicles and crates and


this addmagazine "magazinename";
this addweapon "weaponname";
this addmagazine "magazinename";


for soldiers

:toocool:
« Last Edit: 08 Apr 2003, 07:06:55 by Kaliyuga »

Kaneda

  • Guest
Re:The command you put in ammo crates to add custom weapons ??
« Reply #2 on: 08 Apr 2003, 07:16:45 »
Thank's a lot m8 :)

Kaneda

  • Guest
Re:The command you put in ammo crates to add custom weapons ??
« Reply #3 on: 08 Apr 2003, 07:33:00 »
hmmm it comes up unknown operator..... im using resistance is there a different syntax ?



ah no sory i put both weapon and ammo in one crate...i see that is a  nono now :p

I got it i think )
« Last Edit: 08 Apr 2003, 07:36:13 by Kaneda »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:The command you put in ammo crates to add custom weapons ??
« Reply #4 on: 08 Apr 2003, 07:41:13 »
What did you put in and where when it gives you that error?

this addweaponcargo ["weaponname",#]

At the end of that line the # means the number of weapons you want to add. The same goes with the addmagazine command.
The 'this' part of the command refers to the unit in which init field the command is. So if you're using it in some other place than the units init field you must use  unitname addweapon...

[edit]
..right
[/edit]
« Last Edit: 08 Apr 2003, 07:41:55 by Artak »
Not all is lost.

Kaneda

  • Guest
Re:The command you put in ammo crates to add custom weapons ??
« Reply #5 on: 09 Apr 2003, 11:15:35 »
I put it in the edit unit screen in the ingame editor.