OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Mandoble on 13 Dec 2007, 12:06:26

Title: getting your weapons back after respawn
Post by: Mandoble 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?
Title: Re: getting your weapons back after respawn
Post by: Spooner on 13 Dec 2007, 12:36:19
You just need to switchWeapon to the currently held weapon. I do this in SPON Kits (http://www.ofpec.com/forum/index.php?topic=30711.0), 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).
Title: Re: getting your weapons back after respawn
Post by: Mandoble on 13 Dec 2007, 13:25:44
Thanks Spooner, I'll try that later.