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
Is it possible to make an entity unbreakable on contact with an area?
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#1
Is it possible to make an entity unbreakable on contact with an area?

I wanted to make a door behind a barricade (the bar thing from Justine) unbreakable after the bar hits the area I have placed there.



Does anyone know how I can do this if it is possible at all?

Thanks in advance

~The Hulk is always greener on the other side~
(This post was last modified: 07-09-2012, 09:17 PM by Magasztos.)
07-09-2012, 07:15 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: Is it possible to make an entity unbreakable on contact with an area?

by unbreakble, do you mean unbreakable for enemies? If I understand you right, you want to go through a door, which will lock itself so the enemies can't break through. If you mean that, you will have to deactivate the grunt and refrain from using sounds, particles etc.
I haven't seen a function in the engine scritps page to set a door breakable/unbreakable, but I guess you can work around that by setting the prop health to 100 once it reaches less.

Think, before you speak Google, before you post
(This post was last modified: 07-09-2012, 07:50 PM by Cruzore.)
07-09-2012, 07:46 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: Is it possible to make an entity unbreakable on contact with an area?

You can set doors to be unbreakable in the level editor. You'll have to rely on activating and deactivating the doors from then on (though, i don't see the point in making it based on conditions).

Tutorials: From Noob to Pro
(This post was last modified: 07-09-2012, 08:39 PM by Your Computer.)
07-09-2012, 08:38 PM
Website Find
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#4
RE: Is it possible to make an entity unbreakable on contact with an area?

(07-09-2012, 08:38 PM)Your Computer Wrote: You can set doors to be unbreakable in the level editor. You'll have to rely on activating and deactivating the doors from then on (though, i don't see the point in making it based on conditions).


Well I'll explain real quick so it makes more sense...

That point is kind of the point where you escape from the enemy so when you put the bar in front of the door the enemy (in this case Malo) can't break through the door anymore

But thanks this really helped me a lot guys, thanks.


-Imre

~The Hulk is always greener on the other side~
07-09-2012, 08:50 PM
Find




Users browsing this thread: 1 Guest(s)