OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: wiggum on 20 May 2004, 03:31:34

Title: initialization- addmagazine
Post by: wiggum on 20 May 2004, 03:31:34
ok, i want to add a lawlauncher to my guy so i type in the initialization box "this addweapon "lawlauncher"; addmagazine "lawlauncher"". so i test it and pull out my law launcher and i have no rockets. i tried puting "this addmagazine ["lawlauncher",3]" and it tells me to type any expected object and i go you stupid !@$#@ editor the object is lawlauncher! wat do i do?
Title: Re:initialization- addmagazine
Post by: Kilo11 on 20 May 2004, 03:39:27
Copy this EXACT text in (recomend copy and paste)

Quote
this addWeapon "LAWLauncher"; this addMagazine "LAWLauncher"; this addMagazine "LAWLauncher"; this addMagazine "LAWLauncher"
REMEMBER: The unit most have open ammo spaces or this will NOT work.


-=Hoot=-
Title: Re:initialization- addmagazine
Post by: General Barron on 20 May 2004, 04:09:25
Add the magazine(s) to the unit FIRST, then add the weapon. That way, the weapon will start out loaded. Otherwise, when you/the AI select the weapon, it will have to be reloaded.