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
Nothing happens
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#2
RE: Nothing happens

It should be a callback func, not an interaction func.

Here:

void OnStart()
{    
    SetEntityCallbackFunc("Upperfloorkey", "ActivateMonster");
}

void ActivateMonster(string &in asEntity, string &in type)
{    
    if(type == "OnPickup")    
    {        
        SetEntityActive("character_infected_1", true);        
        for(int i = 1; i < 15; i++)        
        {            
            AddEnemyPatrolNode("character_infected_1", "PathNodeArea_"+i", 0, "");        
        }    
    }
}
(This post was last modified: 03-27-2012, 05:19 PM by ClayPigeon.)
03-27-2012, 05:17 PM
Find


Messages In This Thread
Nothing happens - by Saren - 03-27-2012, 05:04 PM
RE: Nothing happens - by ClayPigeon - 03-27-2012, 05:17 PM
RE: Nothing happens - by Saren - 03-27-2012, 06:06 PM
RE: Nothing happens - by SilentStriker - 03-27-2012, 06:07 PM
RE: Nothing happens - by ClayPigeon - 03-27-2012, 06:22 PM
RE: Nothing happens - by Your Computer - 03-27-2012, 06:52 PM
RE: Nothing happens - by SilentStriker - 03-27-2012, 07:13 PM
RE: Nothing happens - by Your Computer - 03-27-2012, 07:49 PM
RE: Nothing happens - by SilentStriker - 03-27-2012, 07:51 PM
RE: Nothing happens - by Saren - 03-27-2012, 06:41 PM
RE: Nothing happens - by ClayPigeon - 03-27-2012, 06:48 PM
RE: Nothing happens - by Saren - 03-27-2012, 06:54 PM
RE: Nothing happens - by Saren - 03-27-2012, 09:32 PM
RE: Nothing happens - by Your Computer - 03-27-2012, 09:49 PM
RE: Nothing happens - by Saren - 03-27-2012, 09:54 PM



Users browsing this thread: 5 Guest(s)