View unanswered posts | View active topics It is currently Fri Dec 27, 2024 7:59 am



Reply to topic  [ 3 posts ] 
 I need a very simple script. 
Author Message
User avatar

Joined: Mon Mar 07, 2011 2:18 am
Posts: 717
Reply with quote
Post I need a very simple script.
I'm making a cluster grenade and I want the MOSRotating to exploded in mid air, is there a Lua that is just a timer that later makes it gibs itself.


Fri May 13, 2011 4:21 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: I need a very simple script.
Code:
function Create(self)
  self.myTimer = Timer();
end

function Update(self)
  if self.myTimer:IsPastSimMS(X) then
    self:gibThis();
  end
end


Where X is the time you want it to gib in milliseconds.


Fri May 13, 2011 3:05 pm
Profile
User avatar

Joined: Mon Mar 07, 2011 2:18 am
Posts: 717
Reply with quote
Post Re: I need a very simple script.
Thanks alot!


Sat May 14, 2011 2:37 am
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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.101s | 15 Queries | GZIP : Off ]