MovableMan:IsActor

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
DrLuke (Talk)
(Removed wrong example)

Latest revision as of 02:22, 4 September 2009

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