////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false);
RemoveItem("prisonkey_1");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
void Collide_Area(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("slime_anim_wall_1" , true);
}
Another problem, i am trying to spawn a Slime, but Did i put something wrong, please help
.
One World To Another [DEMO] coming soon.