Game Development Community

Holding two swappable weapons

by Bryce · in Technical Issues · 08/17/2008 (9:46 am) · 1 replies

Hello everyone.
I this probably is a resource already, but if it is I can't find it...I want my player to hold two weapons, a primary and a secondary, and when the player looks at an item on the ground, he can swap it out for whatever weapon he's already holding. For the looking at an item part I have the interactive crosshair resource installed, but everything else I need help with. Can someone help me out or point me in the right direction?
Thanks, help is appreciated.

#1
08/18/2008 (11:04 am)
Got it myself. What I did was bind the 1 and 2 keys to a modified use function that would pull up weapon 1 or 2 respectively. For swapping, I just mount the item on the ground and replace that item with the one I was holding.