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
Surprised Looking Script Help
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#5
RE: Surprised Looking Script Help

(04-01-2011, 12:44 AM)MrBigzy Wrote: One small error; all the int alState should be int alStates, just add an s to all those.

Err.. no. ^^
Formal parameters can be named like you want, you just have to use the same name inside the function.

You could use
void script_callback(string &in a, string &in b, int c)
aswell
The thing that is wrong is that you used the entity in the AddEntityCollideCallback instead of the script area, so the function would only be called when you bump the door (or whatever cellar_wood01_1 is).

(This post was last modified: 04-01-2011, 12:55 AM by Pandemoneus.)
04-01-2011, 12:49 AM
Find


Messages In This Thread
Surprised Looking Script Help - by Simpanra - 03-31-2011, 10:00 PM
RE: Surprised Looking Script Help - by Streetboat - 03-31-2011, 10:27 PM
RE: Surprised Looking Script Help - by Simpanra - 03-31-2011, 11:30 PM
RE: Surprised Looking Script Help - by MrBigzy - 04-01-2011, 12:44 AM
RE: Surprised Looking Script Help - by Pandemoneus - 04-01-2011, 12:49 AM
RE: Surprised Looking Script Help - by Simpanra - 04-01-2011, 07:23 AM
RE: Surprised Looking Script Help - by Simpanra - 04-01-2011, 09:21 AM
RE: Surprised Looking Script Help - by MrBigzy - 04-01-2011, 03:43 PM



Users browsing this thread: 1 Guest(s)