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
Nublette Requires Assistance with Scripting and Puzzles
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#1
Smile  Nublette Requires Assistance with Scripting and Puzzles

Hopefully I'll get a little bit better at this so I won't have to continue bothering the forum with my questions.

I've set up a box (SafeBox_0) to trigger music when it collides with the area in front of a door (Area_Safe). That's working with this code:
void OnStart()
{
AddEntityCollideCallback("SafeBox_0", "Area_Safe", "Script_Safe", true, 1);
}

void Intro ()
{

}

void OnEnter ()
{

}

void Script_Safe (string &in asParent, string&in asChild, int alState)
{
    PlayMusic("09_amb_safe", true, 1, 6, 0, true);
}
Only problem is that I need the player to remove the box later and go back into the first room to retrieve a key from a different map (forcing them to leave the safe area, muahaha). The box won't move; I can't touch it or push it in game. That's a little bit problematic...

I'm not quite sure what I need to change. Any suggestions would be much appreciated for this

Oh, and also how do I stop the music once the box is out of the area? It's not stopping when I reload the map.

Edit: I'm putting all my questions here now to avoid spamming the forum Smile

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 01-14-2013, 06:34 AM by CarnivorousJelly.)
01-04-2013, 07:42 AM
Find


Messages In This Thread
Nublette Requires Assistance with Scripting and Puzzles - by CarnivorousJelly - 01-04-2013, 07:42 AM



Users browsing this thread: 1 Guest(s)