Raymond
Member
Posts: 126
Joined: Feb 2011
Reputation: 0
|
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 |
|
Tanshaydar
From Beyond
Posts: 3,091
Joined: Mar 2009
Reputation: 66
|
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 |
|
junkfood2121
Senior Member
Posts: 269
Joined: Jan 2011
Reputation: 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.
|
|
| 03-01-2011 03:47 PM |
|
Raymond
Member
Posts: 126
Joined: Feb 2011
Reputation: 0
|
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 |
|