Author |
Message |
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
How do you make an object instantly settle?
Quick question: How do you make an object (MO) instantly settle, even when in mid-air?
Last edited by CaveCricket48 on Sat Sep 26, 2009 2:22 am, edited 2 times in total.
|
Sat Sep 26, 2009 1:36 am |
|
|
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Re: How do you say "GibWoundLimit" in Lua?
You don't. Unfortunately, there is no variable for that yet. http://www.datarealms.com/wiki/index.php/LuaDocs/Index
|
Sat Sep 26, 2009 1:56 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: How do you say "GibWoundLimit" in Lua?
Oh, that stinks. Thanks anyways.
|
Sat Sep 26, 2009 2:12 am |
|
|
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Re: How do you make an object instantly settle?
object.ToSettle = true; Won't work in mid-air unfortunately. The MO has to have something solid directly under its middle. MOPixels can settle in mid-air, though. Also, in the future, don't edit a topic title into a different question, it makes the other responses in the thread terribly confusing.
|
Sat Sep 26, 2009 3:28 am |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
Re: How do you make an object instantly settle?
TheLastBanana wrote: object.ToSettle = true; Won't work in mid-air unfortunately. The MO has to have something solid directly under its middle. MOPixels can settle in mid-air, though. So, could one settle an MOPixel in midair and then be able to spawn and settle a MOSRot/whatever directly above it?
|
Sat Sep 26, 2009 6:24 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: How do you make an object instantly settle?
Yes.
|
Sat Sep 26, 2009 6:36 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: How do you make an object instantly settle?
I have another question. How do you make "function Destroy (self)", instead of happening when self is destroyed, make it activate when "self.targetactor" is destroyed?
|
Sat Sep 26, 2009 8:23 pm |
|
|
Mind
Joined: Thu Mar 06, 2008 10:54 pm Posts: 1360 Location: USA
|
Re: How do you make an object instantly settle?
Code: if self.targetactor == Nil() then Something like that
|
Sat Sep 26, 2009 9:54 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: How do you make an object instantly settle?
I already know how to do that. I want to do something like "function Destroy(self.targetactor)" except it doesn't work.
Actually, nvm. I found another way.
|
Sat Sep 26, 2009 9:59 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: How do you make an object instantly settle?
if MovableMan:IsActor(self.target) == false then
would actually be the best way to do it
|
Sat Sep 26, 2009 10:20 pm |
|
|
|