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
these planks refuse to die!
liamthespy Offline
Junior Member

Posts: 26
Threads: 10
Joined: Jun 2012
Reputation: 0
#1
these planks refuse to die!

Long story short, I have planks that need to disappear. I wanted them to die in a sort of, "takes-damage" way, but deactivating them doesn't even work.

I've tried this
Quote:void firstcollapse(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("plank01", false);
SetEntityActive("plank02", false);
SetEntityActive("plank03", false);
SetEntityActive("plank04", false);
SetPropActiveAndFade("plank01", false, 0);
SetPropActiveAndFade("plank02", false, 0);
SetPropActiveAndFade("plank03", false, 0);
SetPropActiveAndFade("plank04", false, 0);
}
and here's how it activates;

Quote:SetEntityPlayerInteractCallback("door", "scene", true);

AddEntityCollideCallback("Player", "plankcollapse", "firstcollapse", true, 1);
Quote:void scene(string &in asEntity)
{
SetEntityActive("plankcollapse", true);
}
Basically, you're on a bridge and go past an area called plankcollapse, but it's deactivated. You interact with a door which causes the area to activate and then when you run through it, it should destroy the planks. SCRIPT, Y U NO? Also, I have tried setting prop health as well; it doesn't work either.
07-19-2012, 05:51 PM
Find


Messages In This Thread
these planks refuse to die! - by liamthespy - 07-19-2012, 05:51 PM
RE: these planks refuse to die! - by Steve - 07-19-2012, 06:06 PM
RE: these planks refuse to die! - by liamthespy - 07-19-2012, 06:19 PM
RE: these planks refuse to die! - by Steve - 07-19-2012, 06:25 PM
RE: these planks refuse to die! - by liamthespy - 07-19-2012, 06:35 PM
RE: these planks refuse to die! - by Steve - 07-19-2012, 06:37 PM
RE: these planks refuse to die! - by liamthespy - 07-19-2012, 06:42 PM
RE: these planks refuse to die! - by Steve - 07-19-2012, 06:47 PM
RE: these planks refuse to die! - by liamthespy - 07-19-2012, 07:28 PM
RE: these planks refuse to die! - by Steve - 07-19-2012, 07:57 PM



Users browsing this thread: 2 Guest(s)