NPC:SetMovementActivity
Description
Sets the activity the NPC uses when it moves.
Arguments
Example
Makes all NPCs walk instead of run.
function GM:Think()
for i, npc in ipairs( ents.FindByClass( "npc_*" ) ) do
if IsValid( npc ) and npc:IsNPC() and npc:GetMovementActivity() ~= ACT_WALK then
npc:SetMovementActivity( ACT_WALK )
end
end
end