View source for Ai - EDukeWiki

# View source for Ai

← Ai

You do not have permission to edit this page, for the following reasons:

- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

The ai command is used in two different ways: #To define a combination of [[action]]s and [[move]]ments for an [[actor]] to execute. #To execute a predefined ai within the actor's code. ''Define'' an ai outside of the actor code using the following syntax: :'''ai''' <name> <action> <move> <moveflags...> :<name> is the name of the ai routine. :<action> is the [[action]] the [[actor]] will display when the ai routine is called. :<move> is the [[move]] used during the ai routine. :<moveflags...> is a (possibly empty) sequence of parameters that specify certain hardcoded movement behavior. :Values for each <moveflag> (defined in DEFS.CON) are: :faceplayer, geth, getv, randomangle, faceplayerslow, spin, faceplayersmart, fleeenemy, jumptoplayer, seekplayer, furthestdir, and dodgebullet. See [[move]] for more information. ''Execute'' a predefined ai inside the actor code using the following syntax: :'''ai''' <ainame> [[Category:Duke3D 1.3/1.5 commands]] [[Category:Sprite manipulation]]

Return to Ai.

Retrieved from "http://wiki.eduke32.com/wiki/Ai"