Hallucination
Base object for hallucinations. Contains basic behaviour to display an icon only to the target.
Vars | |
duration | Duration in deciseconds. Can also be a list with the form [lower bound, upper bound] for a random duration. |
---|---|
hallucination_icon | Hallucination icon. |
hallucination_icon_state | Hallucination icon state. |
hallucination_layer | Hallucination layer. |
hallucination_override | Hallucination override. |
images | Lazy list of images created as part of the hallucination. Cleared on destruction. |
target | The mob that sees this hallucination. |
Procs | |
add_icon | Adds an image to the hallucination. Cleared on destruction. |
clear_icon | Clears an image from the hallucination. |
clear_icon_in | Clears an image from the hallucination after a delay. |
clear_icons | Clears all images from the hallucination. |
play_sound_in | Plays a sound to the target only. |
Var Details
duration
Duration in deciseconds. Can also be a list with the form [lower bound, upper bound] for a random duration.
hallucination_icon
Hallucination icon.
hallucination_icon_state
Hallucination icon state.
hallucination_layer
Hallucination layer.
hallucination_override
Hallucination override.
images
Lazy list of images created as part of the hallucination. Cleared on destruction.
target
The mob that sees this hallucination.
Proc Details
add_icon
Adds an image to the hallucination. Cleared on destruction.
Arguments:
- I - The image to add.
clear_icon
Clears an image from the hallucination.
Arguments:
- I - The image to clear.
clear_icon_in
Clears an image from the hallucination after a delay.
Arguments:
- I - The image to clear.
- delay - Delay in deciseconds.
clear_icons
Clears all images from the hallucination.
play_sound_in
Plays a sound to the target only.
Arguments:
- time - Deciseconds before the sound plays.
- source - The turf to play the sound from. Optional.
- snd - The sound file to play.
- volume - The sound volume.
- vary - Whether to randomize the sound's pitch.
- frequency - The sound's pitch.