View unanswered posts | View active topics It is currently Tue Mar 19, 2024 5:10 am



Reply to topic  [ 2 posts ] 
 Animated Magazine while firing 
Author Message

Joined: Thu Feb 16, 2012 4:05 am
Posts: 37
Reply with quote
Post Animated Magazine while firing
I'm trying to set up a gun that has a magazine that cycles between two frames while firing. In the past, I've had magazines that change frame depending on the ammo left, so I know magazine frames can at least be changed in realtime.

I tried this to change the frame after every shot, the idea being that it's one frame on odds and the other frame on evens. Put on the magazine itself

Code:
function Update(self)

         if self.RoundCount % 2 == 0 then
            self.Frame = 0
         else
            self.Frame = 1
         end

end


It does nothing. It doesn't even output errors in the console, on initialization or when the gun is active.


Fri Sep 15, 2017 4:50 am
Profile

Joined: Thu Feb 16, 2012 4:05 am
Posts: 37
Reply with quote
Post Re: Animated Magazine while firing
Of course. It just works now even though I changed nothing.

uh, nevermind then I guess.


Fri Sep 15, 2017 4:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.480s | 15 Queries | GZIP : Off ]