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!
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#5
RE: Cell_Breakable_Wall isn't breaking!

(01-10-2012, 12:48 AM)XxRoCkBaNdMaNxX Wrote:
(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...


Why would you need a script area to break something? Should ScriptArea1 be the item? and I want any item to break the wall not just a chair.
01-10-2012, 01:26 AM
Find


Messages In This Thread
RE: Cell_Breakable_Wall isn't breaking! - by MissMarilynn - 01-10-2012, 01:26 AM



Users browsing this thread: 4 Guest(s)