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
Script Help Exploding door
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
Exploding door

Hey guys, I have done this scripts before, but this time, i just can't get the door to explode (break)

SetEntityPlayerInteractCallback("CellarKey_2", "AreaActive", true);
AddEntityCollideCallback("Player", "ExplodingDoorArea_1", "Explode2", true, 1);


void AreaActive(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ExplodingDoorArea_1", true);
}


void Explode2(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("ExplodingDoor_1", 0);
CreateParticleSystemAtEntity("", "ps_area_fog_falling", "ExplodingDoor_1", false);
PlaySoundAtEntity("", "break_wood", "ExplodingDoor_1", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(10, true);
}


Can you help me out on this one

CURRENT PROJECT:
A Fathers Secret == Just started
07-11-2012, 07:15 PM
Find


Messages In This Thread
Exploding door - by Lizard - 07-11-2012, 07:15 PM
RE: Exploding door - by Cruzore - 07-11-2012, 07:28 PM
RE: Exploding door - by Kazakarumariou - 07-11-2012, 07:28 PM
RE: Exploding door - by Cruzore - 07-11-2012, 07:29 PM
RE: Exploding door - by Lizard - 07-11-2012, 07:33 PM



Users browsing this thread: 1 Guest(s)