movable

Vars | |
blocks_emissive | Either FALSE, [EMISSIVE_BLOCK_GENERIC], or EMISSIVE_BLOCK_UNIQUE |
---|---|
em_block | Internal holder for emissive blocker object, do not use directly use blocks_emissive |
face_while_pulling | Face towards the atom while pulling it |
orbiting_uid | UID for the atom which the current atom is orbiting |
thought_bubble_image | Icon state for thought bubbles. Normally set by mobs. |
Procs | |
admin_Freeze | Created here as a base proc. Override as needed for any type of object or mob you want able to be frozen. |
create_point_bubble | Create a bubble pointing at a particular icon and icon state. See args for create_point_bubble_from_atom. |
create_point_bubble_from_atom | Create a point bubble towards a given item. |
create_point_bubble_from_icons | Create a point bubble towards a given item, from an icon/icon state. |
create_point_bubble_from_path | See above, this uses an uninstantiated path. |
end_throw | called after an items throw is ended. |
key_loop | Key loop to check for movement keys held and move in the desired direction. |
orbit | Set an atom to orbit around another one. This atom will follow the base atom's movement and rotate around it. |
point_at | Point at an atom |
shove_impact | called when a mob gets shoved into an items turf. false means the mob will be shoved backwards normally, true means the mob will not be moved by the disarm proc. |
stop_orbit | Stop this atom from orbiting whatever it's orbiting. |
Var Details
blocks_emissive

Either FALSE, [EMISSIVE_BLOCK_GENERIC], or EMISSIVE_BLOCK_UNIQUE
em_block

Internal holder for emissive blocker object, do not use directly use blocks_emissive
face_while_pulling

Face towards the atom while pulling it
orbiting_uid

UID for the atom which the current atom is orbiting
thought_bubble_image

Icon state for thought bubbles. Normally set by mobs.
Proc Details
admin_Freeze
Created here as a base proc. Override as needed for any type of object or mob you want able to be frozen.
create_point_bubble
Create a bubble pointing at a particular icon and icon state. See args for create_point_bubble_from_atom.
create_point_bubble_from_atom
Create a point bubble towards a given item.
Arguments:
- pointed_atom - Atom to show in the bubble.
- include_arrow - If true, show an arrow pointing downwards.
create_point_bubble_from_icons
Create a point bubble towards a given item, from an icon/icon state.
Arguments:
- icon - Icon source for the bubble's icon.
- icon_state - Icon state for the bubble's icon.
- include_arrow - If true, show an arrow pointing downwards.
create_point_bubble_from_path
See above, this uses an uninstantiated path.
end_throw
called after an items throw is ended.
key_loop
Key loop to check for movement keys held and move in the desired direction.
orbit
Set an atom to orbit around another one. This atom will follow the base atom's movement and rotate around it.
orbiter: atom which will be doing the orbiting radius: range to orbit at, radius of the circle formed by orbiting clockwise: whether you orbit clockwise or anti clockwise rotation_speed: how fast to rotate rotation_segments: the resolution of the orbit circle, less = a more block circle, this can be used to produce hexagons (6 segments) triangles (3 segments), and so on, 36 is the best default. pre_rotation: Chooses to rotate src 90 degress towards the orbit dir (clockwise/anticlockwise), useful for things to go "head first" like ghosts lock_in_orbit: Forces src to always be on A's turf, otherwise the orbit cancels when src gets too far away (eg: ghosts) force_move: If true, ghosts will be ForceMoved instead of having their .loc updated directly. orbit_layer: layer that the orbiter should be on. The original layer will be restored on orbit end.
point_at
Point at an atom
Intended to enable and standardise the pointing animation for all atoms
Not intended as a replacement for the mob verb
shove_impact
called when a mob gets shoved into an items turf. false means the mob will be shoved backwards normally, true means the mob will not be moved by the disarm proc.
stop_orbit
Stop this atom from orbiting whatever it's orbiting.