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 spawn facing a certain way
Author Message
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #11
RE: How to make an enemy spawn facing a certain way
Not sure what you meant by wanting the monster to not have animations, but if it is as how i interpreted it, then why not just use the .dae file of the monster? If by animation you meant walking to the path node, you could just place the path node 0.01 meters or less in front of the monster in the direction you want him to stare at (and possibly have a timer remove all patrol nodes). As for the monster disappearing before reaching him: monsters are automatically disabled under one condition: the player is out of the monster's activation distance. Default distance is 40 20 meters. The only way the monster will stay activated when the player is out of the activation distance is if the player can still see the monster. Your only option if the monster disappears is to increase the activation distance, in this way the path node directly in front of the monster will work; however, as implied, the monster, if triggers are active, will be sticking around for a long time.

Tutorials: From Noob to Pro
(This post was last modified: 12-15-2011 10:08 AM by Your Computer.)
12-15-2011 09:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cryaotic Offline
Senior Member

Posts: 378
Joined: Oct 2010
Reputation: 68
Post: #12
RE: How to make an enemy spawn facing a certain way
(12-15-2011 09:47 AM)Your Computer Wrote:  Not sure what you meant by wanting the monster to not have animations, but if it is as how i interpreted it, then why not just use the .dae file of the monster? If by animation you meant walking to the path node, you could just place the path node 0.01 meters or less in front of the monster in the direction you want him to stare at (and possibly have a timer remove all patrol nodes). As for the monster disappearing before reaching him: monsters are automatically disabled under one condition: the player is out of the monster's activation distance. Default distance is 40 meters. The only way the monster will stay activated when the player is out of the activation distance is if the player can still see the monster. Your only option if the monster disappears is to increase the activation distance, in this way the path node directly in front of the monster will work; however, as implied, the monster, if triggers are active, will be sticking around for a long time.
That sounds like exactly what I am aiming for! Though my final question is, how do I increase the activation distance of the enemy?

12-15-2011 10:02 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #13
RE: How to make an enemy spawn facing a certain way
(12-15-2011 10:02 AM)Cryaotic Wrote:  That sounds like exactly what I am aiming for! Though my final question is, how do I increase the activation distance of the enemy?

Open up the monster of choice in the model editor. Then go to Settings > User defined variables. You'll find it there; you can't miss it. When saving, though, be sure to give the .ent file a different name (e.g. servant_grunt_longrange.ent), or else the game will choose the original. Then in the level editor, click on the monster and on the right click on "..." and open your modified monster. Also, i hope you followed step 8 on setting up a development environment.

Tutorials: From Noob to Pro
12-15-2011 10:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cryaotic Offline
Senior Member

Posts: 378
Joined: Oct 2010
Reputation: 68
Post: #14
RE: How to make an enemy spawn facing a certain way
(12-15-2011 10:07 AM)Your Computer Wrote:  
(12-15-2011 10:02 AM)Cryaotic Wrote:  That sounds like exactly what I am aiming for! Though my final question is, how do I increase the activation distance of the enemy?

Open up the monster of choice in the model editor. Then go to Settings > User defined variables. You'll find it there; you can't miss it. When saving, though, be sure to give the .ent file a different name (e.g. servant_grunt_longrange.ent), or else the game will choose the original. Then in the level editor, click on the monster and on the right click on "..." and open your modified monster. Also, i hope you followed step 8 on setting up a development environment.


Russ Money and I just spent a good many hours trying to get it to work but for some reason it just won't work.

We really don't know why and we even did everything you've mentioned but it simply won't work.

It really is alright and I can make do with what I've got so far, but thank you for the assistance. :]

12-15-2011 12:01 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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