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
Having Trouble making a door lock and close behind me. Help Please! :)
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#2
RE: Having Trouble making a door lock and close behind me. Help Please! :)

This is the wrong place to post this.You have to post scripting,level editor etc. problems into development support.

void OnStart()
{
AddUseItemCallback("", "key01", "doorroom01", "KeyOnDoor", true);
AddUseItemCallback("", "key02", "doorroom02", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "RoomofSecretsArea", "CollideRoomTwo", "true", 1);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("doorroom01", true, true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("doorroom01", false, true);
PlaySoundAtEntity("", "unlock_door", "doorroom01", 0, false);
RemoveItem("key01");
}


void keyfunc(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1", true);
StartPlayerLookAt("servant_brute_1", 15, 15, "");
AddTimer("monstertimer", 2, "monstertimer");
ShowEnemyPlayerPosition("servant_brute_1");

}


void monstertimer(string &in asTimer)
{
StopPlayerLookAt();
}
Try dat.

(This post was last modified: 06-19-2012, 01:23 PM by Datguy5.)
06-19-2012, 01:22 PM
Find


Messages In This Thread
RE: Having Trouble making a door lock and close behind me. Help Please! :) - by Datguy5 - 06-19-2012, 01:22 PM



Users browsing this thread: 1 Guest(s)