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 Can't make door explode?
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#1
Can't make door explode?

Hey, I can't make my "prison_section_plain_2" door explode for colliding with an area.
The door is set locked. It's openamount is 0.

void OnStart()
{
PlayMusic("04_amb.ogg", true, 1, 0.1, 0, true);
SetEntityCallbackFunc("lantern_2", "OnPickup");
AddEntityCollideCallback("Player","ScriptArea_1","DoorExplode",true,1);
}void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("ScriptArea_1", true);
}void DoorExplode(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("prison_section_plain_2", 10, 100, "");
SetPropHealth("prison_section_plain_2", 0.0f);
GiveSanityDamage(10, true);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
FadeImageTrailTo(3, 1);
FadeSepiaColorTo(5, 1);
FadePlayerFOVMulTo(0.7, 0.05);
AddTimer("timerReset", 1.0f, "TimerResetPlayer");
}void TimerResetPlayer(string &in asTimer)
{
ChangePlayerStateToNormal();
StopPlayerLookAt(); FadeImageTrailTo(0, 1);
FadeSepiaColorTo(0, 1);
//FadeRadialBlurTo(0, 1);
FadePlayerFOVMulTo(1, 0.01f); SetPlayerMoveSpeedMul(1);
SetPlayerRunSpeedMul(1);
SetPlayerLookSpeedMul(1);
}

If the door cannot be destroyed like this, is there any workaround?
I do not wish to interact with the door directly.

02-03-2012, 10:33 PM
Find


Messages In This Thread
Can't make door explode? - by GrAVit - 02-03-2012, 10:33 PM
RE: Can't make door explode? - by JenniferOrange - 02-03-2012, 11:42 PM
RE: Can't make door explode? - by GrAVit - 02-03-2012, 11:46 PM
RE: Can't make door explode? - by RawkBandMan - 02-04-2012, 03:43 PM
RE: Can't make door explode? - by JenniferOrange - 02-04-2012, 05:09 PM
RE: Can't make door explode? - by JenniferOrange - 02-03-2012, 11:50 PM
RE: Can't make door explode? - by GrAVit - 02-03-2012, 11:56 PM



Users browsing this thread: 1 Guest(s)