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
PlayerLookAtCallback not working
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#1
PlayerLookAtCallback not working

I want to trigger a function when the player looks at a corpse, but the script doesn't want to compile and always puts out the 'Expected data type' error..

void LookAtCorpses(string &in entity, 1)
{
    PlaySoundAtEntity("", "04_break02.snt", "Player", 3.0f, true);
}

The PlaySoundAt.. is just a filler to see if the Callback worked, but it doesn't.

The func name is in the PlayerLookAtCallback field in the editor's entity tab, the callback syntax is correct afaik. Now what is wrong?


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
10-16-2010, 04:14 PM
Find


Messages In This Thread
PlayerLookAtCallback not working - by Frontcannon - 10-16-2010, 04:14 PM
RE: PlayerLookAtCallback not working - by Entih - 10-16-2010, 06:04 PM
RE: PlayerLookAtCallback not working - by Entih - 10-16-2010, 08:25 PM



Users browsing this thread: 1 Guest(s)