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
How to make a hallucination event.
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#6
RE: How to make a hallucination event.

[size=xx-small]
(04-09-2011, 02:40 PM)ZxBrad Wrote: I put those in heres my hps file rite now.

////////////////////////////
// Run first time starting map
void OnStart()
{
    SetMessage("Journal", "start", 8.0f);
    AddUseItemCallback("", "doorkey_1", "castle_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("castle_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false);
    RemoveItem("doorkey_1");
}

{
  AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
  SetEntityActive("servant_grunt_1" , true);
}

And when i try to start my map up it crashes on me.

It should be like this i think:

// Run first time starting map
void OnStart()
{
SetMessage("Journal", "start", 8.0f);
AddUseItemCallback("", "doorkey_1", "castle_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}

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

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
}
04-09-2011, 02:44 PM
Find


Messages In This Thread
How to make a hallucination event. - by ZxBrad - 04-09-2011, 01:29 PM
RE: How to make a hallucination event. - by Henriksen - 04-09-2011, 02:44 PM



Users browsing this thread: 1 Guest(s)