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
Code not working correctly!
Artyom Offline
Senior Member

Posts: 370
Threads: 27
Joined: Jul 2012
Reputation: 11
#1
Code not working correctly!

void OnStart()
    {
    PlayMusic("01_amb_darkness", true, 0.7f, 1, 0, false);
    AddEntityCollideCallback("player", "ScriptArea_2", "Fade", true, 1);
    }

void Fade(string &in asParent, string &in asChild, int alState)
{
    FadeOut(0.5);
}

Why is this not working!?! The music plays and I don't get any error messages... I have a script box in the map with the designated name so it should work but it is not...

- Inactive account -
(This post was last modified: 12-30-2013, 10:44 PM by Artyom.)
12-30-2013, 10:37 PM
Find


Messages In This Thread
Code not working correctly! - by Artyom - 12-30-2013, 10:37 PM
RE: Code not working correctly! - by daortir - 12-30-2013, 10:50 PM
RE: Code not working correctly! - by Artyom - 12-30-2013, 11:23 PM



Users browsing this thread: 1 Guest(s)