• Make SNPC stand upright after attack on uneven ground
    1 replies, posted
After attacking an enemy on uneven ground my SNPC does not walk upright anymore. Is there a way to fix that? [IMG]http://i.solidfiles.net/375da61680.png[/IMG] [CODE] local schdChase = ai_schedule.New() schdChase:EngTask("TASK_RUN_PATH_TIMED", 0.2) schdChase:EngTask("TASK_WAIT", 0.2) local schdAttack = ai_schedule.New() schdAttack:EngTask("TASK_PLAY_SEQUENCE", ACT_MELEE_ATTACK1) [/CODE] EDIT: It is working now. I used self:SetAngles(...) to face the enemy and did not set pitch to 0. I know about TASK_PLAY_SEQUENCE_FACE_ENEMY but SetAngles() works better when using PlaySeqeuence.
You may need to script some IK for him. I don't remember how IK is handled or if you can even do it. Been so long since I've actually fiddled with that type of shit.
Sorry, you need to Log In to post a reply to this thread.