Data Realms Fan Forums
http://45.55.195.193/

Switching weapons
http://45.55.195.193/viewtopic.php?f=73&t=15653
Page 1 of 1

Author:  Mind [ Tue Jun 30, 2009 6:59 pm ]
Post subject:  Switching weapons

Okay, so I'm trying to make something fire different weapons, or go into different weapon "modes" when pressing a certain button.

Like something to the effect of:

Code:
if (UInputMan:KeyReleased(2) then
           set a certain "Weapon1 mode"
            if the actor's mode is "Weapon one" then
                     then insert firing code here.



Don't know if this is how to do it, but I hope it's possible at least. :|

Author:  mail2345 [ Tue Jun 30, 2009 7:22 pm ]
Post subject:  Re: Switching weapons

Modify my alt fire to read from a variable on the parent instead of the controll state.

Author:  Mind [ Tue Jun 30, 2009 7:23 pm ]
Post subject:  Re: Switching weapons

Okay, thanks :)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/