MovableMan:IsActor

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxMovableMan:IsActor( Userdata Object )
Description:
Check whether object is an actor or not
ReturnsBoolean




Example
DescriptionCheck whether object is an actor
Code
  1. if MoveableMan:IsActor == true then --check whether this object is an actor or not
  2.         print("This is an actor!") --print this if the object is an actor
  3. else
  4.         print("This is not an actor!") --print this if the actor is not an actor
  5. end
OutputBoolean



Other Notes

  • Also Returns true if Object is an object derived from Actor (AHuman, ACrab, etc)
Personal tools