So I am pretty darn new to making Custom Stories, and I am surprised I have gotten this far and advanced into the scripting and all, but I do need some help here.
I have made a room with the following script to make a monster spawn and look for you. It works fine, but the only problem is that it just stands around.
Now please don't be harsh, I am new to all of this and I could use some help!
The script for the level so far:
////////////////////////////
// Run when entering map
void OnStart()
{
SetEntityCallbackFunc("scareactive2", "OnPickup");
}
////////////////////////////
//
void OnPickup (string &in asEntity, string &in type)
{
SetEntityActive ("Monster_Grunt", true);
ShowEnemyPlayerPosition ("monster_grunt");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
This works fine, just need a way to make him go away.
Please, if anyone could help me out here on how I can make my monster patrol around and then disappear off to somewhere after some time. I'v tried to set pathnodes around and script it, but it never ends well and I am no expert so I can't tell what I am doing wrong here, please help out if you can!