Projectile
class Projectile : Entity()fun shoot(player: Actor, target: Npc, arrow: GraphicDefinition) { val projectile = Projectile.create(arrow.id, player.tile4.tile, target, delay = 10) if (World.registerProjectile(projectile)) player.message("You fire an arrow.")}create
Section titled “create”fun create( id: Int, tile: Tile3, target: Entity, startHeight: Int? = null, endHeight: Int? = null, steepness: Int? = null, angle: Int? = null, delay: Int? = null, lifespan: Int? = null, sourceEntity: Entity? = null): Projectile
fun create( id: Int, tile: Tile3, destination: Tile3, startHeight: Int? = null, endHeight: Int? = null, steepness: Int? = null, angle: Int? = null, delay: Int? = null, lifespan: Int? = null, sourceEntity: Entity? = null): ProjectileInherited members
Section titled “Inherited members”Entity:uuid//isAlive//addComponent//replaceComponent//findComponent//getComponent//removeComponent//hasComponent//decommission//resetLook//allComponents//resolve