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
Scripting Help with good idea
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#9
RE: Scripting Help with good idea

Okay I tried it, it didn't work. so I did it another way so when you open the chest Alexander Spawns. But whenever I look at him he doesn't disappear.

Don't Know what else to do.

I have

////////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityPlayerInteractCallback("chest_small_1", "CollideActivateAlex", true);
SetEntityPlayerLookAtCallback("alexander_1", "Alexander1", false);
}

void CollideActivateAlex(string &in Entity)
{
    SetEntityActive("alexander_1", true);
}

void Alexander1(string &in asEntity, int alState)
{
    SetEntityActive("alexander_1", false);
}


Thank you and Sorry For Not Understanding

-Grey Fox

Current Project
Forgotten
08-10-2011, 11:42 PM
Find


Messages In This Thread
Scripting Help with good idea - by GreyFox - 08-10-2011, 08:53 PM
RE: Scripting Help with good idea - by Khyrpa - 08-10-2011, 09:14 PM
RE: Scripting Help with good idea - by GreyFox - 08-10-2011, 10:17 PM
RE: Scripting Help with good idea - by xiphirx - 08-10-2011, 10:20 PM
RE: Scripting Help with good idea - by GreyFox - 08-10-2011, 10:50 PM
RE: Scripting Help with good idea - by xiphirx - 08-10-2011, 10:57 PM
RE: Scripting Help with good idea - by GreyFox - 08-10-2011, 11:08 PM
RE: Scripting Help with good idea - by xiphirx - 08-10-2011, 11:10 PM
RE: Scripting Help with good idea - by GreyFox - 08-10-2011, 11:42 PM
RE: Scripting Help with good idea - by xiphirx - 08-10-2011, 11:58 PM
RE: Scripting Help with good idea - by GreyFox - 08-11-2011, 12:29 AM



Users browsing this thread: 2 Guest(s)