Tesseract
Senior Member
Posts: 498
Threads: 7
Joined: Mar 2011
Reputation:
18
|
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 |
|