 |
variable in the editor. Both must be quoted For example, I might use:
(fields ("aitype" "Mob Type (0-15):")
Sub-function: abilities
Usage: (abilites [ability-pair]*)
Used to set constants in the object. The ability-pair is of the
form (constant value). For example, (run_top_speed 10). In order
to read the value of an ability, you need to use the
(get_ability) function.
Sub-function: range
Usage: (range x y)
Sets the range for this object.
Sub-function: draw_range
Usage: (draw_range x y)
Sets the drawing range for this object.
Sub-function: flags
Usage: (flags [flag-pair]*)
Sets up all kinds of little quirky things about an object.
Each flag-pair is of the form (flag value) where value is
PROBABLY either T or nil. I say probably because I've never
seen a flag with a nil value. Oh well, here's the flags I've
found:
unlistable - The item won't appear in the objects window
of the editor
add_front - When you create this object, put it in front
of all other object so it's drawn on top.
hurtable - You can hurt this object.
... Далее >>
|