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



Reply to topic  [ 10 posts ] 
 How do you make an object instantly settle? 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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
Profile WWW
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: How do you say "GibWoundLimit" in Lua?
Oh, that stinks. Thanks anyways.


Sat Sep 26, 2009 2:12 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How do you make an object instantly settle?
Yes.


Sat Sep 26, 2009 6:36 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 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.030s | 13 Queries | GZIP : Off ]