The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script help for level door
afroduckie Offline
Junior Member

Posts: 35
Threads: 12
Joined: Jan 2013
Reputation: 0
#1
Script help for level door

This is the script for a locked level door. the key you need is level_4_key.
It is supposed to activate a grunt when the door is unlocked (as a scare).

void UseKey(string &in asItem, string &in asEntity)
{
AddUseItemCallback("", "level_4_key", "level4", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level4", true);
PlaySoundAtEntity("", "unlock_door", "level4", 0, false);
RemoveItem("level_4_key");
SetEntityActive("servant_grunt", true);
}

Where did I go wrong?
02-10-2013, 02:21 AM
Find


Messages In This Thread
Script help for level door - by afroduckie - 02-10-2013, 02:21 AM
RE: Script help for level door - by NaxEla - 02-10-2013, 02:31 AM
RE: Script help for level door - by No Author - 02-10-2013, 02:39 AM
RE: Script help for level door - by NaxEla - 02-10-2013, 02:43 AM
RE: Script help for level door - by No Author - 02-10-2013, 02:56 AM
RE: Script help for level door - by afroduckie - 02-10-2013, 03:00 AM



Users browsing this thread: 1 Guest(s)