M MY Multiplayer: Wiki
Side
Kind

getCinematicAdjustments

Client

Returns the shifts and animations laid over an actor's take.

table|false getCinematicAdjustments(cinematic cinematic, string slot)

Parameters

NameTypeDescription
cinematiccinematicThe cinematic.
slotstringThe actor's name.

Returns

A { shifts, animations } table in the format setCinematicAdjustments takes, or false if the actor does not exist.

Example

local intro = createCinematic("cinematics/intro.cine")
local adjustments = getCinematicAdjustments(intro, "hero")
if adjustments then
    table.insert(adjustments.shifts, { start = 9000, offset = vec3(0, 0, 1) })
    setCinematicAdjustments(intro, "hero", adjustments)
end

See also