Hey!
I'm having a (probably) very stupid problem with the lookatcallback.
I'm trying to make a message pop up when a player looks at an entity, but it's not working.
Here's my code:
void OnStart(){
SetEntityPlayerLookAtCallback("wriggle_prison_bar_obj_dyn_1", "barLoose", false);
}
void barLoose(string &in asEntity, int alState){
SetMessage("Messages", "barloose", 2);
}
I also tried it through the hpl editor, but that doesn't work either. Does anyone have an ideas? I tried this with a script area and the entity. Thanks in advance!