Butterfield
Member
Hello y'all! Just as the title says, I'm trying to open a door by code. The gate is already added to template and I can spawn it correctly. The problem is that I want to open it after a dialog is done. With the SetGoState I can change it to closed or opened on spawn, but I can't animate it. Don't know the syntax :smile:
This is all I've written so long.
This is all I've written so long.
Code:
local CellGate = 5000006 -- ID
function OnSpawnGate(event, go)
go:SetGoState(1)
end
RegisterGameObjectEvent(CellGate, 2, OnSpawnGate)