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
Exploading barrel
teddan50 Offline
Junior Member

Posts: 15
Threads: 2
Joined: Dec 2011
Reputation: 0
#1
Exploading barrel

Hello,

I am currently trying to make a script where a barrel suddenly will explode and turn into pieces.

This is my script:

void OnEnter()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Barrelscare", true, 1);
}
void Barrelscare(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("barrel01_pieces_1" , true);
SetPropFade("barrel01_1", "", 0);
PlayGuiSound("break_wood_metal1", 1);


}



...and also, how do I set up messages on doors? I have managed to get a message on a locked leveldoor, but I want to show a different message when a key has been used. I also want to do the same with swingdoors.

Another problem I am also having is that I have created a "scare area" and it works fine, but when I go to a different map and go back again to the first map the "scare area" is still there. How do I make it disappear?

Hope that you guys know what to do!


(This post was last modified: 12-12-2011, 09:05 PM by teddan50.)
12-09-2011, 11:00 PM
Find


Messages In This Thread
Exploading barrel - by teddan50 - 12-09-2011, 11:00 PM
RE: Exploading barrel - by Your Computer - 12-10-2011, 03:06 AM
RE: Exploading barrel - by teddan50 - 12-10-2011, 09:59 AM
RE: Exploading barrel - by Your Computer - 12-10-2011, 11:09 AM
RE: Exploading barrel - by teddan50 - 12-10-2011, 05:15 PM
RE: Exploading barrel - by ferryadams10 - 12-10-2011, 05:20 PM
RE: Exploading barrel - by ferryadams10 - 12-10-2011, 11:12 AM
RE: Exploading barrel - by Your Computer - 12-11-2011, 05:53 AM



Users browsing this thread: 1 Guest(s)