Ai: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
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: | |||
<action> | :ai <name> <action> <move> <type> | ||
<move> is the [[move]] used during the ai routine. | :<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. | |||
:<type> is a parameter set used for directional functions on the [[move]] command. | |||
<type> | :Values for <type> 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:Duke3D 1.3/1.5 commands]] | ||
[[Category:Sprite manipulation]] | [[Category:Sprite manipulation]] |
Revision as of 03:08, 28 August 2006
The ai command is used in two different ways:
- To define a combination of actions and movements 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> <type>
- <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.
- <type> is a parameter set used for directional functions on the move command.
- Values for <type> 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>