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
Script Help AddEntityCollideCallback help
MmXavp Offline
Junior Member

Posts: 4
Threads: 2
Joined: Oct 2020
Reputation: 0
#1
AddEntityCollideCallback help

I'm having some issues here. I trying to set up a script area so when the player walks into it, a sound plays to scare the player. 

this is the script segments to it.

If I've buggered something up, I'd appreciate the help to fix it as I'm still trying to get to grips with this stuff.

AddEntityCollideCallback("Player", "BangDoor", "BangDoorScare", true);

void BangDoorScare ()
{
   PlaySoundAtEntity("", "scare_slam_door.snt", "pitdoor", 0, false);
}
10-11-2020, 12:33 AM
Find


Messages In This Thread
AddEntityCollideCallback help - by MmXavp - 10-11-2020, 12:33 AM



Users browsing this thread: 1 Guest(s)