OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: redmenace on 07 Dec 2005, 04:38:16

Title: connundrum
Post 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..
Title: Re:connundrum
Post by: Pilot on 07 Dec 2005, 04:56:20
Be sure to remove the ak74 magainzes, then add the kozlice magazines first, ex:
Code: [Select]
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
Title: Re:connundrum
Post by: bardosy on 07 Dec 2005, 11:22:16
You must addMagazine "kozlice" first! And then addWeapon "kozlice"...
Title: Re:connundrum
Post by: 456820 on 07 Dec 2005, 22:43:38
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

Quote
You must addMagazine "kozlice" first! And then addWeapon "kozlice"...
indeed you do
Title: Re:connundrum
Post by: THobson on 08 Dec 2005, 00:16:57
Quote
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
Title: Re:connundrum
Post by: Flauta on 08 Dec 2005, 01:09:54
so, if you want to remove all the weapons, and then start adding use;

Code: [Select]
RemoveAllWeapons(This)then add some Kozlize mags
Code: [Select]
this addMagazine "kozliceshell"; this addMagazine "kozliceshell"; this addMagazine "kozliceball"; this addMagazine "kozliceball"Finally add the Kozklize Weapon..
Code: [Select]
this addWeapon "kozlice" and some extra stuff
Code: [Select]
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:
Code: [Select]
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

Code: [Select]
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

Code: [Select]
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"