wtf
i wan't to make a when player pick up key monster activate
.hps
SetEntityPlayerInteractCallback("Tomby1", "ActivateMonster", true);
and
void ActivateMonster(string &in asItem, string &in asEntity)
{
SetEntityActive("Alexander1", "true");
AddEnemyPatrolNode("Alexander1", "PathNodeArea_1", 0, "idle");
AddEnemyPatrolNode("Alexander1", "PathNodeArea_2", 0, "idle");
AddEnemyPatrolNode("Alexander1", "PathNodeArea_3", 0, "idle");
}
Full .hps
void OnStart()
{
AddUseItemCallback("", "Key123", "Door123", "UseKeyOnDoor", true);
AddUseItemCallback("", "Study123", "Doors122", "UseKeyOnDoor2", true);
AddEntityCollideCallback("Player", "SoundArea", "crossarea", true, 1);
SetEntityPlayerInteractCallback("Tomby1", "ActivateMonster", true);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door123", false, true);
PlaySoundAtEntity("", "unlock_door", "Door123", 0, false);
RemoveItem("Key123");
}
void UseKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Doors122", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Doors122", 0, false);
RemoveItem("Study123");
}
void ActivateMonster(string &in asItem, string &in asEntity)
{
SetEntityActive("Alexander1", "true");
AddEnemyPatrolNode("Alexander1", "PathNodeArea_1", 0, "idle");
AddEnemyPatrolNode("Alexander1", "PathNodeArea_2", 0, "idle");
AddEnemyPatrolNode("Alexander1", "PathNodeArea_3", 0, "idle");
}
What is problem ?????? it says something like missing void OnLeave() can set .hps how should be please?
And yeah Alexander enemy :S