• Getting an npc to attack a player.
    1 replies, posted
For example, how do I get a fast zombie to run to a player and attack them? Every time I walk away from them now they stop moving. [code] NPC:AddRelationship( "player D_HT 99" ) NPC.Enemy = player.GetByID( 1 ) NPC:SetEnemy( NPC.Enemy ) NPC:SetTarget( NPC.Enemy ) NPC:SetLastPosition( NPC.Enemy:GetShootPos( ) ) NPC:SetSchedule( SCHED_FORCED_GO_RUN ) [/code] I've tried this already, but nothing seems to work :/
Fixed: Had to node the map. Someone close / remove this thread now.
Sorry, you need to Log In to post a reply to this thread.