View unanswered posts | View active topics It is currently Fri Mar 29, 2024 3:25 pm



Reply to topic  [ 5 posts ] 
 Lua'd zero gravity trooper 
Author Message
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Lua'd zero gravity trooper
As in, an Actor that has some lua script that makes it fly like a rocket (up=up, down=down, L=L, R=R) either by the press of a button or when the actor is at a certain speed or something.


Sun Oct 11, 2009 5:54 pm
Profile
User avatar

Joined: Thu May 15, 2008 11:40 am
Posts: 1527
Location: In heaven, everything is fine.
Reply with quote
Post Re: Lua'd zero gravity trooper
You mean Darkstorm drone and EAF jump cat?


Mon Oct 12, 2009 11:30 am
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Lua'd zero gravity trooper
More like a heavy coalition with a huge backpack that has thrusters for zero gravity habitats, so more like emporeans.


Mon Oct 12, 2009 11:55 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Lua'd zero gravity trooper
pretty easy

function Update(self)
if self:GetController():IsState(Controller.MOVE_UP) == true then
self.Vel.Y = self.Vel.Y - 1;
end
if self:GetController():IsState(Controller.MOVE_DOWN) == true then
self.Vel.Y = self.Vel.Y + 1;
end
if self:GetController():IsState(Controller.MOVE_LEFT) == true then
self.Vel.X = self.Vel.X - 1;
end
if self:GetController():IsState(Controller.MOVE_RIGHT) == true then
self.Vel.X = self.Vel.X + 1;
end
end

that's all working code, but completely untested.


Mon Oct 12, 2009 3:04 pm
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post Re: Lua'd zero gravity trooper
Funny you should ask for this.

Had it lying around in my CC folder.


Attachments:
File comment: I can't remember why I gave up on it.
ZeroGrav.rte.rar [774 Bytes]
Downloaded 182 times
Thu Oct 15, 2009 2:25 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.059s | 18 Queries | GZIP : Off ]