QcTeleportDefinition Struct
A creature that teleports (the shadewalker, decision E-460), from its data (teleport): to a random safe place within range metres (a solid floor, room for its body, no liquid, only in loaded chunks; QcSafeSpot), at most once per cooldownSeconds. More...
| Header: | #include <common/content/mobs/QcMobTraits.h> |
Public Variables
| int | attempts |
| double | cooldownSeconds |
| bool | dodgesProjectiles |
| QString | sound |
| double | towardsTargetChance |
| bool | whenWet |
Detailed Description
Server side only.
Member Variable Documentation
int QcTeleportDefinition::attempts
Random places tried per teleport before it gives up.
double QcTeleportDefinition::cooldownSeconds
Seconds after a teleport before the next one.
bool QcTeleportDefinition::dodgesProjectiles
Projectiles do not hurt it; it teleports away instead (and the projectile bounces off).
QString QcTeleportDefinition::sound
Sound key played where it leaves and where it arrives; empty for silence.
double QcTeleportDefinition::towardsTargetChance
Chance per second that an angry one far from its target teleports towards it.
bool QcTeleportDefinition::whenWet
It teleports away while it is in water or the rain falls on it.