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
Another script that randomly just does not work [solved]
Bennick Offline
Member

Posts: 77
Threads: 27
Joined: Apr 2011
Reputation: 0
#1
Another script that randomly just does not work [solved]

I'm trying to make a model disappear and then have a sound come from the intstrument the model is "playing". I know that the model can disappear because I used it earlier and was able to make it disappear no problem. They are both LookAt callbacks so I copy pasted the callback syntax, I've checked and rechecked the names hundreds of times, and nothing is working. Here's the script:

OnEnter()

{
SetEntityPlayerLookAtCallback("brother2", "brother2", true);

}



void brother2(string &in asEntity, int alState)
{
SetEntityActive("brother2", false);
PlaySoundAtEntity("", "03_waking_up.snt", "piano_2", 0, false);
}

what the hell could possibly be wrong??

Fratricide (title not finalized): 2/7 maps. :D
(This post was last modified: 09-23-2011, 02:39 PM by Bennick.)
09-22-2011, 08:18 PM
Find


Messages In This Thread
Another script that randomly just does not work [solved] - by Bennick - 09-22-2011, 08:18 PM



Users browsing this thread: 1 Guest(s)