View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:53 pm



Reply to topic  [ 3 posts ] 
 Switching weapons 
Author Message
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post 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. :|


Tue Jun 30, 2009 6:59 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Switching weapons
Modify my alt fire to read from a variable on the parent instead of the controll state.


Tue Jun 30, 2009 7:22 pm
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post Re: Switching weapons
Okay, thanks :)


Tue Jun 30, 2009 7:23 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.053s | 13 Queries | GZIP : Off ]