The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setEntityPlayerLookAtCallback problems
Rahmerh Offline
Member

Posts: 66
Threads: 7
Joined: Jun 2015
Reputation: 3
#1
setEntityPlayerLookAtCallback problems

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!
(This post was last modified: 06-26-2015, 01:30 PM by Rahmerh.)
06-26-2015, 01:28 PM
Find


Messages In This Thread
setEntityPlayerLookAtCallback problems - by Rahmerh - 06-26-2015, 01:28 PM



Users browsing this thread: 1 Guest(s)