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
#21
RE: I need a help please

Eh, what? I seriously don't understand what you mean. If someone understand, please explain to me.

Derp.
05-15-2014, 08:13 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#22
RE: I need a help please

to pick key and doors unlock without using that key understand me now :O :D ?

05-15-2014, 08:14 PM
Find
Neelke Offline
Senior Member

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

Yes.

But seriously, if this is the name of the door, this should work.

SetSwingDoorLocked("Door01", false, false);

Derp.
05-15-2014, 08:19 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#24
RE: I need a help please

look

Spoiler below!
void OnStart()

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

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", "Door01", 0.0f, false);
StartScreenShake(0.09f, 2.0f, 0.7f, 1.5f);
}

void PickKey(string &in asEntity, string &in asType)
{
GiveSanityBoostSmall(); //Just a nice little sanity boost
SetSwingDoorLocked("Door01", false, true);
}

something is wrong,what :(

05-15-2014, 08:26 PM
Find
Neelke Offline
Senior Member

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

I can't find a problem. Sorry. Other than that the CollideLockDoor doesn't exist, I can't find any problems. It might be wrong name of the key.

Derp.
05-15-2014, 09:04 PM
Find




Users browsing this thread: 5 Guest(s)