jessehmusic
Senior Member
Posts: 423
Threads: 102
Joined: Dec 2011
Reputation:
8
|
RE: The "IF" with HasItem
(04-09-2012, 03:40 AM)Apjjm Wrote: Can you enable debug messages and tell me what is shown when you run the code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_4", "Scary1", true, 1);
AddDebugMessage("+OnStart",false);
}
void Scary1(string &in asParent, string &in asChild, int alState)
{
if(HasItem("The_gone_key"))
{
SetEntityActive("agrippa_headless_1", true);
PlaySoundAtEntity("", "alois_amb_idle.snt", "Player", 0, false);
AddDebugMessage("+Scary1_KeyTrigger",false);
}
AddDebugMessage("+Scary1",false);
}
It is probably a name mismatch somewhere. dosnt work at all :S
|
|
04-09-2012, 01:02 PM |
|