Home   Help Search Login Register  

Author Topic: getting your weapons back after respawn  (Read 1471 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
getting your weapons back after respawn
« on: 13 Dec 2007, 12:06:26 »
The process seems simple:
you have the death unit and when the player is alive again its weapons are removed and the weapons and magazines of the death unit are added to the respawned player.

But I found that this leaves the player in a situation where he cannot fire or even use "V" key to have the sight view unless he switches weapons, at least when having multiple weapons.

Any simple workaround for this?

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: getting your weapons back after respawn
« Reply #1 on: 13 Dec 2007, 12:36:19 »
You just need to switchWeapon to the currently held weapon. I do this in SPON Kits, though in that I give people what they were assigned rather than re-equipping what they had when they died (not relevant to your question, but anyway).
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: getting your weapons back after respawn
« Reply #2 on: 13 Dec 2007, 13:25:44 »
Thanks Spooner, I'll try that later.