AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NPC AIM (https://forums.alliedmods.net/showthread.php?t=250074)

usaexelent 10-17-2014 22:36

NPC AIM
 
How can I make my NPC aim at something like a player? (only moving upper body.)
pev_v_angle doesn't work for some reason :/

Sylwester 10-18-2014 04:38

Re: NPC AIM
 
try
PHP Code:

set_pev(npcpev_anglesangles)
set_pev(npcpev_fixangle1


usaexelent 10-18-2014 14:48

Re: NPC AIM
 
NPC can't aim up or down, it changes whole model angle, and I only need upper body :/

klippy 10-18-2014 16:43

Re: NPC AIM
 
Try changing only angles[1], that is yaw. Maybe it is possible to move its head by rotating a head bone, but I am not sure if somebody has already done that.

usaexelent 10-18-2014 18:46

Re: NPC AIM
 
Sh** then there's no way to make npc act like in hl game :/

NiHiLaNTh 10-19-2014 05:34

Re: NPC AIM
 
If you want to rotate model, try messing with pev_controller.

usaexelent 10-19-2014 14:08

Re: NPC AIM
 
does anyone has an example of pev_controller? A snippet would be great :)


All times are GMT -4. The time now is 07:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.