Data Realms Fan Forums
http://45.55.195.193/

Never mind, nothing to see here folks >_<
http://45.55.195.193/viewtopic.php?f=73&t=16065
Page 1 of 1

Author:  Kyred [ Fri Jul 31, 2009 4:35 am ]
Post subject:  Never mind, nothing to see here folks >_<

I was writing a script to make a weapon gib as soon as it was dropped. However, I accidentally typed GibThis() with a '.' instead of the usual ':'.
Code:
function Update(self)
    self.GibThis();
end

When I tested the script, the console gave me an error message asking for parameters :0. Since when does GibThis() need parameters? This has to be a different function all together.
Image
Because of the '.', I think this might be an accessible function from CC's game engine, just like MovableMan.Actors and MovableMan.Particles. Could we possibly use this to change what a weapon gibs into? If so, that could be useful :grin:

Hrrmm...I wonder if other classes have a similar function.

Author:  piipu [ Fri Jul 31, 2009 11:33 am ]
Post subject:  Re: HDFirearm.GibThis(); Possible engine function found.

It's just complaining because the function GibThis does need at least a pointer to the object to be gibbed. When calling self:GibThis(), self is automagically passed to GibThis() from what I understand. Also, GibThis() has a few other optional parameters to it. Link
You could probably get self.GibThis working by using self.GibThis(self).

Author:  Kyred [ Fri Jul 31, 2009 6:24 pm ]
Post subject:  Re: Never mind, nothing to see here folks >_<

Woops :oops:. And I thought I was on to something. :lol:

Author:  ProjektTHOR [ Fri Jul 31, 2009 11:00 pm ]
Post subject:  Re: Never mind, nothing to see here folks >_<

Just because you solved your problem doesn't mean you should edit out the topic. Some people might find this question and answer useful.

As such, people should stop editing their topic subjects because their problem was answered. It makes it harder to find pre-existing questions and answers. No one cares how embarrassed you are for asking a stupid question. You asked a question, other people might want the answer.

That having been said, I implore you to change your thread subject back.

Author:  Flammablezombie [ Fri Jul 31, 2009 11:08 pm ]
Post subject:  Re: Never mind, nothing to see here folks >_<

ProjektTHOR wrote:
Just because you solved your problem doesn't mean you should edit out the topic. Some people might find this question and answer useful.

As such, people should stop editing their topic subjects because their problem was answered. It makes it harder to find pre-existing questions and answers. -Snip-. You asked a question, other people might want the answer.

That having been said, I implore you to change your thread subject back.

Edited to make the answer less harsh.

What is the point of this post?

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