Data Realms Fan Forums
http://forums.datarealms.com/

Lua'd zero gravity trooper
http://forums.datarealms.com/viewtopic.php?f=75&t=16784
Page 1 of 1

Author:  Lizardheim [ Sun Oct 11, 2009 5:54 pm ]
Post subject:  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.

Author:  The Decaying Soldat [ Mon Oct 12, 2009 11:30 am ]
Post subject:  Re: Lua'd zero gravity trooper

You mean Darkstorm drone and EAF jump cat?

Author:  Lizardheim [ Mon Oct 12, 2009 11:55 am ]
Post subject:  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.

Author:  Grif [ Mon Oct 12, 2009 3:04 pm ]
Post subject:  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.

Author:  zalo [ Thu Oct 15, 2009 2:25 am ]
Post subject:  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 75 times

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