Garry's Mod Wiki

Entity:SetLegacyTransform

  Entity:SetLegacyTransform( boolean enabled )

Description

This forces an entity to use the bone transformation behaviour from versions prior to 8 July 2014.

This behaviour affects Entity:EnableMatrix and Entity:SetModelScale and is incorrect, therefore this function be used exclusively as a quick fix for old scripts that rely on it.

Arguments

1 boolean enabled
Whether the entity should use the old bone transformation behaviour or not.