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
Level Editor Help Cell_Breakable_Wall isn't breaking!
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#4
RE: Cell_Breakable_Wall isn't breaking!

(01-09-2012, 10:54 PM)MissMarilynn Wrote:
(01-09-2012, 08:27 PM)Inurias Wrote: You probably need to make a script again :3

Hint:
You will most likely need:
void SetPropHealth(string& asName, float afHealth);

There are probably more ways to detect the chair touching the wall, but you could just use an Area again.

- Inurias
*cries* I hate scripting. Smile

so how would I write that out? >_<;
OnStart()

AddEntityCollideCallback("", "chair_1", "script_area_1", "breakwall", true);

void breakwall(string &in asEntity)
{
SetPropHealth("breakable_wall_1", 0.0f);
}



Sometime like that...


I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
01-10-2012, 12:48 AM
Find


Messages In This Thread
RE: Cell_Breakable_Wall isn't breaking! - by RawkBandMan - 01-10-2012, 12:48 AM



Users browsing this thread: 1 Guest(s)