From 1d63ded0d125e6728c91ca39f63b628db2566385 Mon Sep 17 00:00:00 2001 From: tdetp <82554322+tdkhl@users.noreply.github.com> Date: Thu, 7 May 2026 17:47:33 +0200 Subject: [PATCH] Removed GetType (deprecated) to GetClass --- docs/getting-started/tutorials-and-examples/doors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/tutorials-and-examples/doors.md b/docs/getting-started/tutorials-and-examples/doors.md index a7327cc63f0..ee024c3e7cb 100644 --- a/docs/getting-started/tutorials-and-examples/doors.md +++ b/docs/getting-started/tutorials-and-examples/doors.md @@ -37,7 +37,7 @@ local trigger = Trigger(Vector(0, 0, 100), Rotator(), 150) -- Registers the trigger when a Character moves in trigger:Subscribe("BeginOverlap", function(trigger, actor) - if (actor:GetType() ~= "Character") then return end + if (actor:GetClass() ~= Character) then return end -- Plays an opening door animation on the Character actor:PlayAnimation("nanos-world::AM_Mannequin_DoorOpen_01", AnimationSlotType.UpperBody) @@ -48,7 +48,7 @@ end) -- Registers the trigger when a Character moves out trigger:Subscribe("EndOverlap", function(trigger, actor) - if (actor:GetType() ~= "Character") then return end + if (actor:GetClass() ~= Character) then return end -- Rotates the door back to original position, smoothly door:RotateTo(Rotator(0, 0, 90), 1)