03-23-2011, 06:19 PM
Hi guys. I just added this to my hps
The AddUseItemCallback is where the key stuff starts, obviously.
I don't see what the problem is. I named everything correctly.
Oh, here's the error I get
main (28,5) : ERR: No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)'
Code:
void OnStart()
{
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_25",3.0f, "");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_17",3.0f, "");
AddEntityCollideCallback("Player", "Scream_1", "Scream_1", true, 1);
AddEntityCollideCallback("Player", "Monster_1", "MonsterFunc1", true, 1);
AddUseItemCallback("", "key_study_1", "level_wood_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_wood_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "level_wood_1", 0.0f, true);
}
The AddUseItemCallback is where the key stuff starts, obviously.
I don't see what the problem is. I named everything correctly.
Oh, here's the error I get
main (28,5) : ERR: No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)'