Data Realms Fan Forums http://45.55.195.193/ |
|
Help with SetWhichMOToNotHit? http://45.55.195.193/viewtopic.php?f=73&t=16264 |
Page 1 of 1 |
Author: | Shook [ Tue Aug 18, 2009 9:02 pm ] |
Post subject: | Help with SetWhichMOToNotHit? |
Hey guys, this may be a dumb question, but ♥♥♥♥ that. Basically, i can't figure out how to use SetWhichMOToNotHit. My current and obviously wrong version looks like this: Code: function Create(self) self:SetWhichMOToNotHit("Main Thruster Blast Ball 1",-1); ... The console does provide some obscure feedback, but i can't make sense of it whatsoever. Just for good measure, here's the Wiki page: http://www.datarealms.com/wiki/index.ph ... MOToNotHit What am i doing wrong, and what should i do to make it right? |
Author: | Grif [ Tue Aug 18, 2009 9:06 pm ] |
Post subject: | Re: Help with SetWhichMOToNotHit? |
SetWhichMOToNotHit requires a pointer, not a string. Basically, do this: for particle in MovableMan.Particles do if particle.PresetName == "Main Thruster Blast Ball 1" then self:SetWhichMOToNotHit(particle,-1); end end That'll make yourself not hit the particles, by the way, not the other way around, but it'll work just as well. Also, your limbs, attachables, and head will still collide. |
Author: | Areku [ Tue Aug 18, 2009 9:08 pm ] |
Post subject: | Re: Help with SetWhichMOToNotHit? |
SetWhichMOToNotHit, like many Lua functions, doesn't work with pure presetnames. You have to make a pointer for that object, such as in: for thing in MovableMan.Particles do if thing.PresetName == "Main Thruster Blast Ball" then self:SetWhichMOToNotHit(thing,-1); end end EDIT: heck, ninja'd! |
Author: | Shook [ Tue Aug 18, 2009 9:20 pm ] |
Post subject: | Re: Help with SetWhichMOToNotHit? |
Ah, ok, thanks. I got around the problem of the particles hitting the limbs by making the particles ignore the actor, instead of the actor ignoring the particles. Problem solved. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |