Skip to content

Commit 0876b58

Browse files
committed
Added NPCData.SnapToNormal
1 parent 4f726d3 commit 0876b58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

garrysmod/gamemodes/sandbox/gamemode/commands.lua

+4
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ local function InternalSpawnNPC( NPCData, ply, Position, Normal, Class, Equipmen
424424

425425
NPC:SetAngles( Angles )
426426

427+
if ( NPCData.SnapToNormal ) then
428+
NPC:SetAngles( Normal:Angle() )
429+
end
430+
427431
--
428432
-- Does this NPC have a specified model? If so, use it.
429433
--

0 commit comments

Comments
 (0)