OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: satexas69 on 06 Mar 2007, 03:21:09
-
I know how to set up a player with custom weapons (that's easy enough) for my player:
INIT: this removeweapon "M24"; this addweapon "M4SPR"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this removemagazine "5Rnd_762x51_M24"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this removemagazine "Smokeshellred"; this removemagazine "Smokeshellred"; this addmagazine "Handgrenade"; this addmagazine "Handgrenade"
... but 2 problems happen - one, you start off holding your handgun and you have to select your gun AND reload it (annoying), but even more importantly, when you respawn, you get default guns... not the modified INIT ones... how can I fix this?
-
Check out this link I think its got what you're after: http://www.ofpec.com/forum/index.php?topic=28740.0
The script in the link is an ArmA conversion I made of toadlife's OFP weapon respawn script and gives you the choice of either respawning with the weapons you started the mission with or the weapons you died with. Let me know if you need any help getting it running.
Oh and just a tip on setting the weapons in the int line of the unit. You must add the ammo before the weapon otherwise the weapon starts unloaded.
-
Thank you Norrin, very helpful - I'll try that out.
Also, thank you for the tip about ammo-before-guns.