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
I have a problem with my script
Harrjannk Offline
Junior Member

Posts: 4
Threads: 1
Joined: Feb 2012
Reputation: 0
#1
I have a problem with my script

Hey,
First thing: My English is bad. I hope you will understand me. Smile
I'm new here and I'm currently working on my first custom story.
I tried, to make an area, where a sound would play, when the player walks into another area, but it doesn't work. When I walk into the area, nothing happens. I tried to solve it, but I can't see what's the problem. Huh
Heres my script:

Quote: void OnStart()
{
AddEntityCollideCallback("Player", "ActivateLurker", "StartSound", true, 1);
}

void StartSound(string &in Entity)
{
PlaySoundAtEntity("StartSound", "water_lurker_idle.snt", "LurkerSound", 0, false);
}
(This post was last modified: 02-05-2012, 02:51 PM by Harrjannk.)
02-05-2012, 01:55 PM
Find


Messages In This Thread
I have a problem with my script - by Harrjannk - 02-05-2012, 01:55 PM
RE: I have a problem with my script - by Elven - 02-05-2012, 02:05 PM
RE: I have a problem with my script - by Elven - 02-05-2012, 02:55 PM



Users browsing this thread: 1 Guest(s)