I am not quite sure how to do this .
I want all npc_zombie in the map to move to position -8576.687500 -2627.500000 -12194.843750
when i type AttackTown in console. Please help.
[lua] function AttackTheTown(class) if class == npc_zombie then // No idea what has to go here <,<
end
concommand.Add("AttackTown", AttackTheTown)
[/lua]
end
[QUOTE=gh0strec0n;19538236]I am not quite sure how to do this .
I want all npc_zombie in the map to move to position cc
when i type AttackTown in console. Please help.
function AttackTheTown(class) if class == npc_zombie then // No idea what has to go here <,<
end
concommand.Add("AttackTown", AttackTheTown)
end[/QUOTE]
Try:
npc_zombie:NavSetGoal( Vector(-8576.687500 -2627.500000 -12194.843750) )
Check out the Garrysmod Wiki for the client, server, and shared function dumps.
[url]http://wiki.garrysmod.com/?title=Main_Page[/url]
what he sayd *points up*
Im gonna test this out and edit the post if it works :D
Oh and a question: Will they walk straight to the place or will they use nodes?
No it doesnt work. The npcs dont go to the position
Sorry, you need to Log In to post a reply to this thread.