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 I need a help please
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#8
RE: I need a help please

Dude, calm down. I'm trying to help you here and I'm not blaming you. I just changed the timer so it was correct (didnt see it was in OnStart). But try giving this a go.
void OnStart()

{
AddEntityCollideCallback("Player", "CloseDoor", "CollideLockDoor", true, 1);
AddEntityCollideCallback("Player", "Area01", "LookBack01", true, 1);
}

void LookBack01(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Door01", 2, 25, "CallbackName");
AddTimer("", 3, "StopLookingAtDoor");
AddTimer("DoorDown", 3, "LockDoor");
}

void StopLookingAtDoor(string &in asTimer)
{
StopPlayerLookAt();
}

void LockDoor(string &in asTimer)
{
SetSwingDoorLocked("Door01", true, true);

PlaySoundAtEntity("bang", "scare_slam_door", "castle_1", 0.0f, false);
StartScreenShake(0.02f, 1.0f, 0.5f, 1.0f);
}

Derp.
05-14-2014, 06:25 PM
Find


Messages In This Thread
I need a help please - by Straxedix - 05-14-2014, 06:01 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:11 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:18 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:19 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:20 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:21 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:22 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:25 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:31 PM
RE: I need a help please - by Neelke - 05-14-2014, 06:35 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:50 PM
RE: I need a help please - by Statyk - 05-14-2014, 06:54 PM
RE: I need a help please - by Straxedix - 05-14-2014, 06:56 PM
RE: I need a help please - by Neelke - 05-14-2014, 08:49 PM
RE: I need a help please - by Straxedix - 05-15-2014, 09:35 AM
RE: I need a help please - by Red - 05-15-2014, 02:46 PM
RE: I need a help please - by Straxedix - 05-15-2014, 03:22 PM
RE: I need a help please - by Neelke - 05-15-2014, 03:50 PM
RE: I need a help please - by Traggey - 05-15-2014, 04:41 PM
RE: I need a help please - by Straxedix - 05-15-2014, 07:00 PM
RE: I need a help please - by Neelke - 05-15-2014, 08:13 PM
RE: I need a help please - by Straxedix - 05-15-2014, 08:14 PM
RE: I need a help please - by Neelke - 05-15-2014, 08:19 PM
RE: I need a help please - by Straxedix - 05-15-2014, 08:26 PM
RE: I need a help please - by Neelke - 05-15-2014, 09:04 PM



Users browsing this thread: 2 Guest(s)