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
[SOLVED] Script Problem
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#9
RE: Script Problem

If you just want to open a door with a lever, this is the best way I think:

SetEntityConnectionStateChangeCallback(string& asName, string& asCallback);

So if you had SetEntityConnectionStateChangeCallback("LeverOpensDoor", "LeverDoor");

void LeverDoor(string &in EntityName, int alState)
{
   if (alState==1) SetSwingDoorLocked("mansion_2", false, true);
}

Something like that.
04-15-2011, 11:12 PM
Find


Messages In This Thread
[SOLVED] Script Problem - by laser50 - 04-14-2011, 09:51 PM
RE: Script Problem - by Pandemoneus - 04-14-2011, 10:49 PM
RE: Script Problem - by laser50 - 04-15-2011, 12:51 PM
RE: Script Problem - by laser50 - 04-15-2011, 03:23 PM
RE: Script Problem - by Dalroc - 04-15-2011, 03:30 PM
RE: Script Problem - by laser50 - 04-15-2011, 03:35 PM
RE: Script Problem - by MrBigzy - 04-15-2011, 04:15 PM
RE: Script Problem - by laser50 - 04-15-2011, 07:03 PM
RE: Script Problem - by MrBigzy - 04-15-2011, 11:12 PM
RE: Script Problem - by laser50 - 04-16-2011, 12:13 AM



Users browsing this thread: 1 Guest(s)