Project OutFox Wiki
Project OutFox home View the OutFox Wiki source on GitHub Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto mode Back to homepage

Actor

This is the base that everything derives from. Whatever an Actor can do, everything else can as well. It can be useful for creating control variables without creating something visible on screen.

-- Actors can be very useful as variable controllers since it does not perform any kind of
-- overhead to the draw pipe.

local Value = 2
Def.Actor{
    InitCommand=function(self)
        Value = Value + 2
        Trace("My Value is now ".. Value)
    end
}

Attributes

NameType Description
[Name]CommandfunctionThe basis for any command. Check Commands for more information.
Name stringThe name for the actor. Giving this a value allows this actor to be obtain by its name by any other actor. Check Obtaining Childs and ActorFrame Levels for more information.
BaseRotationXnumberThe base rotation for the X axis. Any rotation value is added ON TOP of this value.
BaseRotationYnumberThe base rotation for the Y axis. Any rotation value is added ON TOP of this value.
BaseRotationZnumberThe base rotation for the Z axis. Any rotation value is added ON TOP of this value.
BaseZoomXnumberThe base zoom for the X axis. Any zoom value is added ON TOP of this value.
BaseZoomYnumberThe base zoom for the Y axis. Any zoom value is added ON TOP of this value.
BaseZoomZnumberThe base zoom for the Z axis. Any zoom value is added ON TOP of this value.

Table of Contents