Home   Help Search Login Register  

Author Topic: Setting Player Weapons/Mags + Respawning with them  (Read 1342 times)

0 Members and 1 Guest are viewing this topic.

Offline satexas69

  • Members
  • *
Setting Player Weapons/Mags + Respawning with them
« 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?

Offline norrin

  • Tutorial Writer
  • **
Re: Setting Player Weapons/Mags + Respawning with them
« Reply #1 on: 06 Mar 2007, 03:27:47 »
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.

Offline satexas69

  • Members
  • *
Re: Setting Player Weapons/Mags + Respawning with them
« Reply #2 on: 06 Mar 2007, 03:31:12 »
Thank you Norrin, very helpful - I'll try that out.

Also, thank you for the tip about ammo-before-guns.