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

ActorProxy

An ActorProxy is an actor that allows rendering of other Actors without the need to create the logic for it again.

Def.ActorProxy{
    OnCommand=function(self)
        self:SetTarget( [target actor] ) 
    end
}

Attributes

There are no special attributes for this actor class.

Draw logic

As long as the target Actor is present, it will draw it. If it’s deleted during runtime, it will stop drawing.

Functions

SetTarget

(Actor targetActor)

Tells the ActorProxy to use targetActor as its draw target.

GetTarget

Returns the current actor this ActorProxy is currently rendering. Returns nil if no actor is assigned previously.