07-26-2011, 08:29 PM
Ehm.. I'm wondring about how I can make the monster destroy the boxes when it's chasing you, like in Justine. Anyone knows how? please help if you know anything.
(07-26-2011, 09:05 PM)Russ Money Wrote: [ -> ]Do you mean something like this?
http://www.youtube.com/watch?v=FANr-XWaV...age#t=835s
It's essentially an area the player walks over and the boxes are set to 0 health. The monster is spawned behind those boxes.
(07-26-2011, 09:29 PM)MrCookieh Wrote: [ -> ]I just think that they are in his way, and he pushes them away.
Don't know if it's possible to force a monster to destroy boxes
(07-26-2011, 09:46 PM)MrCookieh Wrote: [ -> ]okay, it seems, that the boxes in certain areas get destroyed by this command:
SetPropHealth("a"+iArea+"b_*", 0);
So the health of the boxes are set to 0, and (I've never tried it) they get destroyed by this.
Try to add this line:
SetPropHealth("nameofyourbox", 0);
and watch if it gets destroyed. But be sure to uncheck the disableBreakable in the entity's menu of your box
(07-26-2011, 10:51 PM)MrCookieh Wrote: [ -> ]not sure if it's possible to write like that, but aren't the if missing?I didn't get any error, thanks But the boxes didn't break or something.
if(asChild == "Area_EnemyBreaksThroughDebris_1"){
BreakTunnelBoxEffect(asChild, 1);
}
I always write it like that, so I dunno if this is just another way to type it