[Help scripting code] Monster Controllable - Attack
Hello, I was wondering if it is possible to let the monster draw blood from only the front players!
Look at the example below to understand a little of what I'm talking about: Code:
public set_attack(ent) |
Re: [Help scripting code] Monster Controllable - Attack
The target selection seems to be made in get_victim().
You could use TraceHull with an appropriate body to determine if the target is partly covered by something. But it may not have the effect that you want. A simple distance check should also work. But I'm assuming get_victim() has something like this since no parameters are fed into it. |
| All times are GMT -4. The time now is 20:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.