• NPC unlimited target distance
    1 replies, posted
Hey Is it possible for a script to enable NPC's to target any player on the map, regardless of the distance between them and if there are objects obstructing view? Much like Rambo 6's Redead NPC zombies, the NPC will 'know' where the player is, hence following the node path to the player. Thanks
To give an npc a target and have it go after it use this : [lua]npc:SetTarget(ent) npc:UpdateEnemyMemory(ent,pos)[/lua] npc and ent need to be valid entities, and pos a vector.
Sorry, you need to Log In to post a reply to this thread.