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
problems with scripting
Tesseract Offline
Senior Member

Posts: 498
Threads: 7
Joined: Mar 2011
Reputation: 18
#21
RE: problems with scripting

Im not very good with levers im still trying to get my head around it try playing around with.


void StateChange(string &in EntityName, int alState)
{
if(alState == 1)
SetLeverStuckState(asMainEntity, -1, true);
SetSwingDoorLocked("Ceiling", false, true);
SetEntityActive("Exit_Guard01" , true);
PlaySoundAtEntity("LeverExit01", "levelexitopen.ogg", "Player", 0.5f, false);
AddEnemyPatrolNode("Exit_Guard01", "Path9", 0.1f, "true"); // There are more pathnodes, but then my post would explode... xD
}
Oh and dont forget the callback:

SetEntityConnectionStateChangeCallback("YourLeverName", "StateChange");
(This post was last modified: 08-13-2011, 12:39 PM by Tesseract.)
08-13-2011, 12:27 PM
Find


Messages In This Thread
problems with scripting - by Brute - 08-11-2011, 11:51 AM
RE: problems with scripting - by Your Computer - 08-11-2011, 03:07 PM
RE: problems with scripting - by Brute - 08-11-2011, 04:48 PM
RE: problems with scripting - by Tanshaydar - 08-11-2011, 06:11 PM
RE: problems with scripting - by Brute - 08-11-2011, 06:41 PM
RE: problems with scripting - by Tanshaydar - 08-11-2011, 06:48 PM
RE: problems with scripting - by plutomaniac - 08-11-2011, 10:23 PM
RE: problems with scripting - by Brute - 08-12-2011, 08:20 AM
RE: problems with scripting - by plutomaniac - 08-12-2011, 09:35 AM
RE: problems with scripting - by Brute - 08-12-2011, 09:53 AM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 10:02 AM
RE: problems with scripting - by Brute - 08-12-2011, 10:58 AM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 12:27 PM
RE: problems with scripting - by Brute - 08-12-2011, 01:13 PM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 02:01 PM
RE: problems with scripting - by Tesseract - 08-12-2011, 02:06 PM
RE: problems with scripting - by Brute - 08-12-2011, 03:01 PM
RE: problems with scripting - by Tesseract - 08-13-2011, 01:50 AM
RE: problems with scripting - by Endlvl - 08-12-2011, 03:25 PM
RE: problems with scripting - by Brute - 08-13-2011, 08:14 AM
RE: problems with scripting - by Tesseract - 08-13-2011, 12:27 PM
RE: problems with scripting - by Brute - 08-13-2011, 01:19 PM
RE: problems with scripting - by Brute - 08-16-2011, 05:15 PM
RE: problems with scripting - by Brute - 08-19-2011, 06:23 PM



Users browsing this thread: 1 Guest(s)