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
How to make an enemy automatically break the door?
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#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
Website Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#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.

Creator of The Dark Treasure.
03-01-2011, 03:47 PM
Website Find
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)