Useractor

From EDukeWiki
Revision as of 17:08, 24 December 2004 by Usurper (talk | contribs)
Jump to navigation Jump to search

Similar to actor. This defines a new actor in a slightly more specific manner, and it does so without restraining the amount of defined actors. Version 1.3D only allowed so many actors so to add a new one required replacing another. Version 1.5 remedied this with useractor.

useractor <actortype> <name> <strength> <action> <move> <ai> { actor code } enda

<actortype> can either be "enemy," "enemystayput," or "notenemy."

  • The "enemy" type makes an actor that is intended to be used as a character who commences actions on player sight.
  • The "enemystayput" works the same as "enemy," except that the actor will not leave the sector it is placed in.
  • The "notenemy" type is primarily intended to make an actor that is a decoration or otherwise not a threat to the player. This type of actor will have no shadow by default, and it will not be targeted if autoaim is enabled; you may wish to use this to code an enemy with these inate properties.

<name> is the name/tile of the actor. You can either input a defined name, or the tile number directly.

<strength> is the health of the actor.

<action> is the intial action an actor uses (optional).

<move> is the initial move of the actor (optional).

<ai> is the actor's initial ai routine (optional).

{ actor code } is obviously the code for the actor.

enda ends an actor.