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 Easy Cuestion
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#6
RE: Easy Cuestion

Like this ?
void OnStart()

{

AddUseItemCallback("", "Key123", "Door123", "UseKeyOnDoor", true);
AddUseItemCallback("", "Study123", "Doors122", "UseKeyOnDoor2", true);
AddEntityCollideCallback("Player", "Area1", "LookBack, true, 1)
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door123", false, true);
PlaySoundAtEntity("", "unlock_door", "Door123", 0, false);
RemoveItem("Key123");
}

void UseKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Doors122", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Doors122", 0, false);
RemoveItem("Study123");
}

void FunctionName(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Door123", 20, 25, "CallbackName");
}

void CallbackName()
{
StopPlayerLookAt();
}

(This post was last modified: 03-11-2014, 09:37 PM by Straxedix.)
03-11-2014, 09:30 PM
Find


Messages In This Thread
Easy Cuestion - by Straxedix - 03-11-2014, 08:42 PM
RE: Easy Cuestion - by Neelke - 03-11-2014, 08:50 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 08:53 PM
RE: Easy Cuestion - by Neelke - 03-11-2014, 09:17 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 09:20 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 09:30 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 09:38 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 09:41 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 09:57 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 09:59 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 10:08 PM
RE: Easy Cuestion - by Straxedix - 03-12-2014, 01:28 PM
RE: Easy Cuestion - by Neelke - 03-12-2014, 02:05 PM
RE: Easy Cuestion - by Romulator - 03-12-2014, 02:13 PM
RE: Easy Cuestion - by Straxedix - 03-12-2014, 05:57 PM
RE: Easy Cuestion - by Neelke - 03-12-2014, 06:01 PM
RE: Easy Cuestion - by Straxedix - 03-12-2014, 07:27 PM



Users browsing this thread: 1 Guest(s)