Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
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 |
|
Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
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 |
|
Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
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 |
|
Straxedix
Senior Member
Posts: 426
Threads: 52
Joined: Mar 2014
Reputation:
5
|
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 |
|
Neelke
Senior Member
Posts: 668
Threads: 82
Joined: Apr 2013
Reputation:
26
|
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 |
|
|