04-18-2012, 07:00 PM
Ok hellow .
Im trying to make a monster activate when you walk in area..
I got a brute setup in a cabinet.
this is the little scipt it made
void OnStart()
{
SetEnemyDisabled("brute1", true);
//when the player enters the area the brute gets activated
AddEntityCollideCallback("Player", "brute1activate", "brute1activate", true, 1);
}
void brute1activate(string &in asParent, string &in asChild, int alState)
{ i dont know what the false and true mean the wiki doesnt explain
SetNPCAwake("brute1", false, true);
}
what im a missing.?
i would alos want to add a timer so when you enter the area 1 second later the brute activates
Im trying to make a monster activate when you walk in area..
I got a brute setup in a cabinet.
this is the little scipt it made
void OnStart()
{
SetEnemyDisabled("brute1", true);
//when the player enters the area the brute gets activated
AddEntityCollideCallback("Player", "brute1activate", "brute1activate", true, 1);
}
void brute1activate(string &in asParent, string &in asChild, int alState)
{ i dont know what the false and true mean the wiki doesnt explain
SetNPCAwake("brute1", false, true);
}
what im a missing.?
i would alos want to add a timer so when you enter the area 1 second later the brute activates