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



This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
 Never mind, nothing to see here folks >_< 
Author Message
User avatar

Joined: Sun May 31, 2009 1:04 am
Posts: 308
Post 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.


Last edited by Kyred on Fri Jul 31, 2009 6:23 pm, edited 1 time in total.



Fri Jul 31, 2009 4:35 am
Profile
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Post 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).


Fri Jul 31, 2009 11:33 am
Profile
User avatar

Joined: Sun May 31, 2009 1:04 am
Posts: 308
Post Re: Never mind, nothing to see here folks >_<
Woops :oops:. And I thought I was on to something. :lol:


Fri Jul 31, 2009 6:24 pm
Profile
Banned
User avatar

Joined: Tue Feb 27, 2007 4:05 pm
Posts: 2527
Post 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.


Fri Jul 31, 2009 11:00 pm
Profile YIM
User avatar

Joined: Wed Jan 14, 2009 7:12 pm
Posts: 1525
Location: In between your sister's legs, showing her how to use a... PS3 controller!
Post 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?


Fri Jul 31, 2009 11:08 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.058s | 14 Queries | GZIP : Off ]