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 Galloglaich's problems with scripting and other stuff
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#7
RE: Galloglaich's problems with scripting and other stuff

I believe SetEntityConnectionStateChangeCallback should do the trick.

void OnStart()
{
    SetEntityConnectionStateChangeCallback("name_of_gramofone", "CALLBACK");
}

void CALLBACK(string &in asEntity, int alState)
{
    if(alState == 1) //Turned on
    {
    }
    if(alState == -1) //Turned off
    {
    }
}
(This post was last modified: 03-25-2012, 08:50 PM by ClayPigeon.)
03-25-2012, 08:49 PM
Find


Messages In This Thread
RE: Galloglaich's problems with scripting and other stuff - by ClayPigeon - 03-25-2012, 08:49 PM



Users browsing this thread: 1 Guest(s)