Quote:The things you can fill in is instead of making a line inside the void OnStart().
You can try put SetEntityActive in one of them.
I would put it in the PlayerInteractCallback
Idk what this means exactly, but I do not recommend doing any of this.
You're trying to make monsters spawn when you pick up a lantern? (-.-)
Make the lantern named "lantern_1". Make two monsters named "servant_grunt_1", "servant_grunt_2".
void OnStart()
{
SetEntityCallbackFunc("lantern_1", "PickLantern");
//you can also add patrol nodes here, I would recommend this; makes spawning codes cleaner
}
void OnEnter()
{
}
void OnLeave()
{
}
void PickLantern(string &in asEntity, string &in type)
{
SetEntityActive("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
//add your patrol nodes here
}