OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: redmenace on 07 Dec 2005, 04:38:16
-
this removeWeapon "ak74"; this addWeapon "kozlice"; this addMagazine "kozliceshell"; this addMagazine "kozliceshell"; this addMagazine "kozliceball"
I have that in the init field of an east soldier, and he spawns with the kozlice but no ammo!
It's quite the connundrum..
-
Be sure to remove the ak74 magainzes, then add the kozlice magazines first, ex:
this removeWeapon "ak74"; this removemagazine "ak74"; this removemagazine "ak74"; this removemagazine "ak74"; this removemagazine "ak74"; this addMagazine "kozliceshell"; this addMagazine "kozliceshell"; this addMagazine "kozliceball"; this addweapon "kozlice";
-Pilot
-
You must addMagazine "kozlice" first! And then addWeapon "kozlice"...
-
since its on the same topic ive noticed if i remove an M16 mag from a normal soldier the player starts with no ammo and must reload ? how doy you get around that
You must addMagazine "kozlice" first! And then addWeapon "kozlice"...
indeed you do
-
since its on the same topic ive noticed if i remove an M16 mag from a normal soldier the player starts with no ammo and must reload ? how doy you get around that
Remove his M16 and then give it back to him
-
so, if you want to remove all the weapons, and then start adding use;
RemoveAllWeapons(This)
then add some Kozlize mags
this addMagazine "kozliceshell"; this addMagazine "kozliceshell"; this addMagazine "kozliceball"; this addMagazine "kozliceball"
Finally add the Kozklize Weapon..
this addWeapon "kozlice"
and some extra stuff
this addWeapon "Binoculars"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"
It will se like these:
RemoveAllWeapons(This); this addMagazine "kozliceshell"; this addMagazine "kozliceshell"; this addMagazine "kozliceball"; this addMagazine "kozliceball"; this addWeapon "kozlice";this addWeapon "Binoculars"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"; this addweapon "handgrenade"
or you can first remove the Ak74 setup like these
this removeweapon "ak74"; this removemagazine "ak47"; this removemagazine "ak74""; this removemagazine "ak74""; this removemagazine "ak74"
and then add de ammo.. it'll look like these
this removeweapon "ak74"; this removemagazine "ak47"; this removemagazine "ak74""; this removemagazine "ak74""; this removemagazine "ak74";this addMagazine "kozliceshell"; this addMagazine "kozliceshell"; this addMagazine "kozliceball"; this addMagazine "kozliceball"; this addweapon "kozlice"