Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make an enemy automatically break the door?
Author Message
Raymond Offline
Member

Posts: 126
Joined: Feb 2011
Reputation: 0
Post: #1
How to make an enemy automatically break the door?
I've been wondering how to force the enemy break my door when i trigger something? The Grunt just stand there, and also, how to make a enemy dissapear if he can't find me?

One World To Another [DEMO] coming soon.
03-01-2011 10:16 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #2
RE: How to make an enemy automatically break the door?
ShowEnemyPlayerPosition(string& asName);
asname = enemy name.
Enemy will break the door.

03-01-2011 10:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
junkfood2121 Offline
Senior Member

Posts: 269
Joined: Jan 2011
Reputation: 3
Post: #3
RE: How to make an enemy automatically break the door?
You can also do SetPropHealth("Name_of_Door", 0); to make the door get destroyed instantly.
If you want the enemy to destroy the door but not know your position, place patrol nodes that goes through the door.

May I present to you.. the Grunt Cannon:
http://www.youtube.com/watch?v=v9KjvvVzNNg
03-01-2011 03:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Raymond Offline
Member

Posts: 126
Joined: Feb 2011
Reputation: 0
Post: #4
RE: How to make an enemy automatically break the door?
I use the AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_29", 0, ""); because it is easier, thanks.

One World To Another [DEMO] coming soon.
03-09-2011 09:57 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)