View previous topic :: View next topic |
Author |
Message |
redrum

Joined: 28 Mar 2007 Posts: 367 Location: Long Island, New York
|
Posted: Tue Oct 23, 2007 12:12 am Post subject: Fixangle? |
|
|
I've added monsters to my mod.
Problem is, in certain spawn points the monsters face the wall.
I tried adding self.fixangle = TRUE; to the code but that didn't help.
How can I fix this? _________________ Welcome to the Overlook Hotel 69.113.123.178:27500 |
|
Back to top |
|
 |
Orion

Joined: 12 Jan 2007 Posts: 414 Location: Brazil
|
Posted: Tue Oct 23, 2007 12:43 am Post subject: |
|
|
Add:
Code: |
self.angles = spot.angles;
|
Make sure the monster's spawnning function calls SelectSpawnPoint() from an entity called "spot", or whatever. If is not "spot", then change it to whatever name you gave to the local entity (that is at the very top of the monster spawning function).
Remove the self.fixangle = TRUE line. _________________ There's no signature here. Stop looking for one. |
|
Back to top |
|
 |
redrum

Joined: 28 Mar 2007 Posts: 367 Location: Long Island, New York
|
Posted: Tue Oct 23, 2007 12:52 am Post subject: |
|
|
Thanks man! _________________ Welcome to the Overlook Hotel 69.113.123.178:27500 |
|
Back to top |
|
 |
|