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
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#3
RE: Nothing happens

(03-27-2012, 05:17 PM)ClayPigeon Wrote: 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, "");        
        }    
    }
}
Thx man, Ima try that
EDIT: (1.1) No matching signatures to void OnEnter()
(30.1) unexpected end of file


(This post was last modified: 03-27-2012, 06:17 PM by Saren.)
03-27-2012, 06:06 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: 4 Guest(s)