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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to have more scripts then one at a time.[Solved]
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#2
RE: How to have more scripts then one at a time.

{
ConnectEntities("door_connection", //Name of connection
"Lever1", //Parent entity (Affects)
"Shelf", //Child entity (Affected)
false, //Invert the state sent
1, //States used (0=both), checked before invertion.
"CreateDust"); //callback
}

this is not a proper function. It needs a head (void example(...){}) to work (like your
void KeyOnDoor(...){}).

So you have to decide: Should the code trigger automatically at the beginning, then put it
in the OnStart(){}. Otherwise, add your Callback in your OnStart() and the function for the
callback before the {.

If you don't understand it, then you can tell me what should happen, that the function gets triggered, so I can give you an example code.

The Well: Descent - Take a look at it!
07-28-2011, 11:09 AM
Find


Messages In This Thread
RE: How to have more scripts then one at a time. - by MrCookieh - 07-28-2011, 11:09 AM



Users browsing this thread: 1 Guest(s)