Avorion Script API Documentation

Weapon

function Weapon()

Returns

A new instance of Weapon

property float accuracy
property int appearance
property int appearanceSeed
property bool armed[read-only]
property float banimationAcceleration
property float banimationSpeed
property float bauraWidth
property Color binnerColor
property float blength
property int blockPenetration
property Color bouterColor
property int bshape
property float bshapeSize
property float bwidth
property bool civil[read-only]
property bool continuousBeam
property float damage
property DamageType damageType
property bool deathExplosion
property float dps[read-only]
property float explosionRadius
property float fireDelay
property float fireRate
property float holdingForce
property float hullDamage[read-only]
property float hullDamageMultiplicator
property float hullDamageMultiplier
property float hullRepair
property string icon
property bool impactExplosion
property int impactParticles
property int impactSound
property bool isBeam[read-only]
property bool isProjectile[read-only]
property vec3 localPosition
property Material material
property float metalRawEfficiency
property float metalRefinedEfficiency
property string name
property float otherForce
property float pangularVelocity
property Color pcolor
property float pmaximumTime
property vec3 position[read-only]
property string prefix
property int pshape
property float psize
property float pvelocity
property Rarity rarity
property float reach
property float recoil
property bool seeker
property float selfForce
property float shieldDamage[read-only]
property float shieldDamageMultiplicator
property float shieldDamageMultiplier
property float shieldPenetration
property float shieldRepair
property vec3 shotCreationPosition
property int shotsFired
property float shotsPerSecond[read-only]
property Material smaterial
property string sound
property float stoneDamageMultiplicator
property float stoneDamageMultiplier
property float stoneRawEfficiency
property float stoneRefinedEfficiency
property int tech
property bool timedDeath

function bool propertiesEqual(Weapon other)

function var setBeam()

Returns

nothing

function var setProjectile()

Returns

nothing

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7