Stopping monster movement.
I'm trying to get monster's basicly to be frozen, he's what I tryed so far:
Code:
Setting it's flags didn't do anything, but setting it's maxspeed/speed had a different effect, it stopped the monster from moving. But when using the monster to make it follow you (It's the Scientist NPC) he didn't move... But when using him again, he did.. Anyone have any idea? It would also be really good if there was a way to make the NPC 'brain dead'. Something to basicly just freeze it, don't shoot, don't attack. blah blah. EDIT: Code:
|
Re: Stopping monster movement.
I really hate to bump my own thread, but anyone have any ideas?
|
Re: Stopping monster movement.
If you're using the nextthink method, when you want to re-enable them, set their pev_nextthink to get_gametime() + 0.1
|
Re: Stopping monster movement.
You might be able to set the monster as spawnflags:0 which makes it not attack anything, but still acts as a monster entity and reacts to sounds etc. and do what you're doing
|
Re: Stopping monster movement.
When dealing with flags don't perform simple set but use bitwise OR operator:
Quote:
Quote:
|
| All times are GMT -4. The time now is 06:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.