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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Key
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#1
Key

When I try to launch my story it says Masterbedroomkey was not declared... or something like that.... anything wrong here?
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "Masterbedroomkey", "masterbedroomdoor", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("masterbedroomdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "masterbedroomdoor", 0, false);
RemoveItem(Masterbedroomkey);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
(This post was last modified: 02-01-2012, 04:29 PM by Saren.)
02-01-2012, 04:28 PM
Find


Messages In This Thread
Key - by Saren - 02-01-2012, 04:28 PM
RE: Key - by SilentStriker - 02-01-2012, 04:32 PM
RE: Key - by Saren - 02-01-2012, 04:38 PM
RE: Key - by SilentStriker - 02-01-2012, 04:40 PM
RE: Key - by Saren - 02-01-2012, 04:42 PM
RE: Key - by SilentStriker - 02-01-2012, 04:45 PM
RE: Key - by flamez3 - 02-01-2012, 04:53 PM
RE: Key - by Saren - 02-01-2012, 05:00 PM
RE: Key - by Your Computer - 02-01-2012, 07:32 PM
RE: Key - by Saren - 02-01-2012, 07:36 PM
RE: Key - by Your Computer - 02-01-2012, 07:39 PM
RE: Key - by Saren - 02-01-2012, 08:34 PM
RE: Key - by SilentStriker - 02-01-2012, 08:37 PM
RE: Key - by Your Computer - 02-01-2012, 08:38 PM
RE: Key - by Saren - 02-01-2012, 09:05 PM
RE: Key - by Your Computer - 02-01-2012, 09:37 PM
RE: Key - by Saren - 02-01-2012, 09:43 PM
RE: Key - by Your Computer - 02-01-2012, 10:14 PM
RE: Key - by Saren - 02-01-2012, 10:45 PM



Users browsing this thread: 1 Guest(s)