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
Pulling lever to trigger door unlock & monster
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#4
RE: Pulling lever to trigger door unlock & monster

(07-20-2012, 03:17 AM)HeadyBoy Wrote: Works perfectly. Thank you Big Grin
Just been fiddling around.. and now it does not work, have I done something wrong here?


____________________________________________________________________

void OnStart()
{
SetEntityConnectionStateChangeCallback("lever_nice01_1", "leversuitor_1");
}

void leversuitor_1(string &in asEntity, int alState)
{
if(alState == 1 || alState == -1)
{
SetSwingDoorLocked("mansiondoor_1", false, false);
SetEntityActive("suitorman_1", true);
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_1", 0.1f, "");
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_2", 0.1f, "");
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_3", 0.1f, "");
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_4", 0.1f, "");
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_5", 0.1f, "");
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_6", 0.1f, "");
AddEnemyPatrolNode("suitorman_1", "PathNodeArea_7", 0.1f, "");
}
else
{

}
}


anybody have any ideas on what I have knocked out of place? because the lever doesnt trigger anything now

Edit: This is driving me mental.

Voice Actor - Male, British Accent, Mid-teens, Adaptable
Custom Stories - "The Heist: Amnesia" (In production)
(This post was last modified: 07-20-2012, 09:33 PM by HeadyBoy.)
07-20-2012, 07:41 PM
Find Reply


Messages In This Thread
RE: Pulling lever to trigger door unlock & monster - by HeadyBoy - 07-20-2012, 07:41 PM



Users browsing this thread: 1 Guest(s)