Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help I don't know what's going on. FATAL ERROR
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#4
RE: I don't know what's going on. FATAL ERROR

(08-15-2013, 04:16 AM)JustAnotherPlayer Wrote:
void CollideDoorone(string &in asParent, string &in asChild, int alState)

It's int alState, not int alStates.

PlaySoundAtEntity("Sound_1", "00_laugh.snt", "Player", 0.1f, false);

You don't need a void in PlaySoundAtEntity. You only need it when it comes to functions. And it's Player, not player.

Parameter names are unimportant to a function's signature. The compiler/parser only complains if a parameter's type is different and no overloaded function with said signature exists.

I think. I dunno.

And yes, void is a return type.
(This post was last modified: 08-15-2013, 04:41 AM by Tomato Cat.)
08-15-2013, 04:40 AM
Find


Messages In This Thread
RE: I don't know what's going on. FATAL ERROR - by Tomato Cat - 08-15-2013, 04:40 AM



Users browsing this thread: 1 Guest(s)