View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:24 am



Reply to topic  [ 5 posts ] 
 Arms and legs 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Arms and legs
Now that accesing attachables with lua is easier, and we have also more functions and thingies, I was wondering, is it possible to detach the arms/legs from the torso with lua?
And another doubt I had is, can I "freeze" the legs or arms of a target making them staying at the same frame for a period of time with lua?

Thanks!


Fri Sep 09, 2011 7:11 pm
Profile
User avatar

Joined: Wed May 20, 2009 3:10 pm
Posts: 366
Location: Århus, Denmark
Reply with quote
Post Re: Arms and legs
Yes and yes

use the function Detach like this

Code:
if self.Leg ~= nil and self.Leg.ID ~= 255 then
  self.Leg:Detach()
end


And for the other just use

Code:
self.Status = 2


He may collapse in place, but other than that, it should work.


Thu Aug 02, 2012 7:18 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Arms and legs
Wow, you only took like, 1 year to answer! =P

I had forgot I had this idea, so I'm gonna troll around for a while with this. Thanks!


Thu Aug 02, 2012 10:42 pm
Profile
User avatar

Joined: Wed May 20, 2009 3:10 pm
Posts: 366
Location: Århus, Denmark
Reply with quote
Post Re: Arms and legs
Asklar wrote:
Wow, you only took like, 1 year to answer! =P

I had forgot I had this idea, so I'm gonna troll around for a while with this. Thanks!


Ha, I just looked through the unanswered posts, and I didn't realize it was that old :P


Fri Aug 03, 2012 6:40 am
Profile

Joined: Fri Aug 03, 2012 1:59 am
Posts: 9
Reply with quote
Post Re: Arms and legs
Meganercro. xD

akblabla, could you explain what it means if the ID is 255? I'm having issues related to it.

Edit: Nevermind, problem solved!


Wed Aug 08, 2012 9:04 pm
Profile
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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.050s | 15 Queries | GZIP : Off ]