Difference between revisions of "InstanceData Script"

2,111 bytes added ,  20:10, 30 September 2017
Add all global functions, ordered, with correct argument names and descriptions.
imported>ShadeMe
(Add all global functions)
imported>ShadeMe
(Add all global functions, ordered, with correct argument names and descriptions.)
Line 26: Line 26:


== F4SE Global Functions ==
== F4SE Global Functions ==
*int Function [[GetAttackDamage - InstanceData|GetAttackDamage]](Owner akOwner)
**desc
*Function [[SetAttackDamage - InstanceData|SetAttackDamage]](Owner akOwner, int damage)
**desc
*DamageTypeInfo[] Function [[GetDamageTypes - InstanceData|GetDamageTypes]](Owner akOwner)
**desc
*Function [[SetDamageTypes - InstanceData|SetDamageTypes]](Owner akOwner, DamageTypeInfo[] dts)
**desc
*int Function [[GetAmmoCapacity - InstanceData|GetAmmoCapacity]](Owner akOwner)
**desc
*Function [[SetAmmoCapacity - InstanceData|SetAmmoCapacity]](Owner akOwner, int capacity)
**desc
*Ammo Function [[GetAmmo - InstanceData|GetAmmo]](Owner akOwner)
**desc
*Function [[SetAmmo - InstanceData|SetAmmo]](Owner akOwner, Ammo akAmmo)
**desc
*int Function [[GetAccuracyBonus - InstanceData|GetAccuracyBonus]](Owner akOwner)
*int Function [[GetAccuracyBonus - InstanceData|GetAccuracyBonus]](Owner akOwner)
**desc
**Gets the object's current accuracy bonus.
*Function [[SetAccuracyBonus - InstanceData|SetAccuracyBonus]](Owner akOwner, int bonus)
 
**desc
*float Function [[GetActionPointCost - InstanceData|GetActionPointCost]](Owner akOwner)
*float Function [[GetActionPointCost - InstanceData|GetActionPointCost]](Owner akOwner)
**desc
**Gets the object's current action point cost in VATS.
*Function [[SetActionPointCost - InstanceData|SetActionPointCost]](Owner akOwner, float cost)
 
**desc
*Ammo Function [[GetAmmo - InstanceData|GetAmmo]](Owner akOwner)
**Gets the object's current ammo.
 
*int Function [[GetAmmoCapacity - InstanceData|GetAmmoCapacity]](Owner akOwner)
**Gets the object's ammo capacity.
 
*int Function [[GetArmorHealth - InstanceData|GetArmorHealth]](Owner akOwner)
**Gets the object's current armor health.
 
*int Function [[GetArmorRating - InstanceData|GetArmorRating]](Owner akOwner)
**Gets the object's armor rating.
 
*int Function [[GetAttackDamage - InstanceData|GetAttackDamage]](Owner akOwner)
**Gets the object's attack damage.
 
*float Function [[GetAttackDelay - InstanceData|GetAttackDelay]](Owner akOwner)
*float Function [[GetAttackDelay - InstanceData|GetAttackDelay]](Owner akOwner)
**desc
**Gets the object's current attack delay.
*Function [[SetAttackDelay - InstanceData|SetAttackDelay]](Owner akOwner, float delay)
 
**desc
*float Function [[GetCritChargeBonus - InstanceData|GetCritChargeBonus]](Owner akOwner)
**Gets the object's current critical charge bonus.
 
*float Function [[GetCritMultiplier - InstanceData|GetCritMultiplier]](Owner akOwner)
**Gets the object's current critical multiplier.
 
*DamageTypeInfo[] Function [[GetDamageTypes - InstanceData|GetDamageTypes]](Owner akOwner)
**Gets the object's damage types, as an array.
 
*bool Function [[GetFlag - InstanceData|GetFlag]](Owner akOwner, int flag)
**Gets the state of the passed flag on the object.
 
*int Function [[GetGoldValue - InstanceData|GetGoldValue]](Owner akOwner)
**Gets the object's current gold (cap) value.
 
*Keyword[] Function [[GetKeywords - InstanceData|GetKeywords]](Owner akOwner)
**Gets the object's current keywords, as an array.
 
*float Function [[GetMaxRange - InstanceData|GetMaxRange]](Owner akOwner)
**Gets the object's current max range.
 
*float Function [[GetMinRange - InstanceData|GetMinRange]](Owner akOwner)
**Gets the object's current min range.
 
*int Function [[GetNumProjectiles - InstanceData|GetNumProjectiles]](Owner akOwner)
**Gets the object's current number of projectiles per shot.
 
*float Function [[GetOutOfRangeMultiplier - InstanceData|GetOutOfRangeMultiplier]](Owner akOwner)
*float Function [[GetOutOfRangeMultiplier - InstanceData|GetOutOfRangeMultiplier]](Owner akOwner)
**desc
**Gets the object's current out of range multiplier.
*Function [[SetOutOfRangeMultiplier - InstanceData|SetOutOfRangeMultiplier]](Owner akOwner, float mult)
 
**desc
*Projectile Function [[GetProjectileOverride - InstanceData|GetProjectileOverride]](Owner akOwner)
**Gets the object's current projectile override.
 
*float Function [[GetReach - InstanceData|GetReach]](Owner akOwner)
**Gets the object's current reach.
 
*float Function [[GetReloadSpeed - InstanceData|GetReloadSpeed]](Owner akOwner)
*float Function [[GetReloadSpeed - InstanceData|GetReloadSpeed]](Owner akOwner)
**desc
**Gets the object's current reload speed.
*Function [[SetReloadSpeed - InstanceData|SetReloadSpeed]](Owner akOwner, float speed)
 
**desc
*ActorValue Function [[GetResist - InstanceData|GetResist]](Owner akOwner)
*float Function [[GetReach - InstanceData|GetReach]](Owner akOwner)
**Gets the object's current resist ActorValue.
**desc
 
*Function [[SetReach - InstanceData|SetReach]](Owner akOwner, float reach)
*float Function [[GetSightedTransition - InstanceData|GetSightedTransition]](Owner akOwner)
**desc
**Gets the object's current sighted transition time.
*float Function [[GetMinRange - InstanceData|GetMinRange]](Owner akOwner)
 
**desc
*ActorValue Function [[GetSkill - InstanceData|GetSkill]](Owner akOwner)
*Function [[SetMinRange - InstanceData|SetMinRange]](Owner akOwner, float minRange)
**Gets the object's current skill ActorValue.
**desc
 
*float Function [[GetMaxRange - InstanceData|GetMaxRange]](Owner akOwner)
**desc
*Function [[SetMaxRange - InstanceData|SetMaxRange]](Owner akOwner, float maxRange)
**desc
*float Function [[GetSpeed - InstanceData|GetSpeed]](Owner akOwner)
*float Function [[GetSpeed - InstanceData|GetSpeed]](Owner akOwner)
**desc
**Gets the object's current speed.
*Function [[SetSpeed - InstanceData|SetSpeed]](Owner akOwner, float speed)
 
**desc
*int Function [[GetStagger - InstanceData|GetStagger]](Owner akOwner)
*int Function [[GetStagger - InstanceData|GetStagger]](Owner akOwner)
**desc
**Gets the object's current stagger.
*Function [[SetStagger - InstanceData|SetStagger]](Owner akOwner, int stagger)
 
**desc
*ActorValue Function [[GetSkill - InstanceData|GetSkill]](Owner akOwner)
**desc
*Function [[SetSkill - InstanceData|SetSkill]](Owner akOwner, ActorValue skill)
**desc
*ActorValue Function [[GetResist - InstanceData|GetResist]](Owner akOwner)
**desc
*Function [[SetResist - InstanceData|SetResist]](Owner akOwner, ActorValue resist)
**desc
*float Function [[GetCritMultiplier - InstanceData|GetCritMultiplier]](Owner akOwner)
**desc
*Function [[SetCritMultiplier - InstanceData|SetCritMultiplier]](Owner akOwner, float crit)
**desc
*float Function [[GetCritChargeBonus - InstanceData|GetCritChargeBonus]](Owner akOwner)
**desc
*Function [[SetCritChargeBonus - InstanceData|SetCritChargeBonus]](Owner akOwner, float bonus)
**desc
*Projectile Function [[GetProjectileOverride - InstanceData|GetProjectileOverride]](Owner akOwner)
**desc
*Function [[SetProjectileOverride - InstanceData|SetProjectileOverride]](Owner akOwner, Projectile proj)
**desc
*int Function [[GetNumProjectiles - InstanceData|GetNumProjectiles]](Owner akOwner)
**desc
*Function [[SetNumProjectiles - InstanceData|SetNumProjectiles]](Owner akOwner, int numProj)
**desc
*float Function [[GetSightedTransition - InstanceData|GetSightedTransition]](Owner akOwner)
**desc
*Function [[SetSightedTransition - InstanceData|SetSightedTransition]](Owner akOwner, float seconds)
**desc
*bool Function [[GetFlag - InstanceData|GetFlag]](Owner akOwner, int flag)
**desc
*Function [[SetFlag - InstanceData|SetFlag]](Owner akOwner, int flag, bool set)
**desc
*int Function [[GetArmorHealth - InstanceData|GetArmorHealth]](Owner akOwner)
**desc
*Function [[SetArmorHealth - InstanceData|SetArmorHealth]](Owner akOwner, int health)
**desc
*int Function [[GetArmorRating - InstanceData|GetArmorRating]](Owner akOwner)
**desc
*Function [[SetArmorRating - InstanceData|SetArmorRating]](Owner akOwner, int health)
**desc
*float Function [[GetWeight - InstanceData|GetWeight]](Owner akOwner)
*float Function [[GetWeight - InstanceData|GetWeight]](Owner akOwner)
**desc
**Gets the object's current weight.
*Function [[SetWeight - InstanceData|SetWeight]](Owner akOwner, float weight)
 
**desc
*Function [[SetAccuracyBonus - InstanceData|SetAccuracyBonus]](Owner akOwner, int aiBonus)
*int Function [[GetGoldValue - InstanceData|GetGoldValue]](Owner akOwner)
**Sets the object's current accuracy bonus.
**desc
 
*Function [[SetGoldValue - InstanceData|SetGoldValue]](Owner akOwner, int value)
*Function [[SetActionPointCost - InstanceData|SetActionPointCost]](Owner akOwner, float afCost)
**desc
**Sets the object's current action point cost in VATS.
*Keyword[] Function [[GetKeywords - InstanceData|GetKeywords]](Owner akOwner)
 
**desc
*Function [[SetAmmo - InstanceData|SetAmmo]](Owner akOwner, Ammo akAmmo)
*Function [[SetKeywords - InstanceData|SetKeywords]](Owner akOwner, Keyword[] kwds)
**Sets the object's current ammo.
**desc
 
*Function [[SetAmmoCapacity - InstanceData|SetAmmoCapacity]](Owner akOwner, int aiCapacity)
**Sets the object's ammo capacity.
 
*Function [[SetArmorHealth - InstanceData|SetArmorHealth]](Owner akOwner, int aiHealth)
**Sets the object's current armor health.
 
*Function [[SetArmorRating - InstanceData|SetArmorRating]](Owner akOwner, int aiRating)
**Sets the object's armor rating.
 
*Function [[SetAttackDamage - InstanceData|SetAttackDamage]](Owner akOwner, int aiDamage)
**Sets the object's attack damage.
 
*Function [[SetAttackDelay - InstanceData|SetAttackDelay]](Owner akOwner, float afDelay)
**Sets the object's current attack delay.
 
*Function [[SetCritChargeBonus - InstanceData|SetCritChargeBonus]](Owner akOwner, float afBonus)
**Sets the object's current critical charge bonus.
 
*Function [[SetCritMultiplier - InstanceData|SetCritMultiplier]](Owner akOwner, float afMult)
**Sets the object's current critical multiplier.
 
*Function [[SetDamageTypes - InstanceData|SetDamageTypes]](Owner akOwner, DamageTypeInfo[] akDamageInfo)
**Sets the object's damage types, using an array.
 
*Function [[SetFlag - InstanceData|SetFlag]](Owner akOwner, int flag, bool abSet)
**Sets the state of the passed flag on the object.
 
*Function [[SetGoldValue - InstanceData|SetGoldValue]](Owner akOwner, int aiValue)
**Sets the object's current gold (cap) value.
 
*Function [[SetKeywords - InstanceData|SetKeywords]](Owner akOwner, Keyword[] akKeywords)
**Sets the object's current keywords, using an array.
 
*Function [[SetMaxRange - InstanceData|SetMaxRange]](Owner akOwner, float afRange)
**Sets the object's current max range.
 
*Function [[SetMinRange - InstanceData|SetMinRange]](Owner akOwner, float afRange)
**Sets the object's current min range.
 
*Function [[SetNumProjectiles - InstanceData|SetNumProjectiles]](Owner akOwner, int aiNumProj)
**Sets the object's current number of projectiles per shot.
 
*Function [[SetOutOfRangeMultiplier - InstanceData|SetOutOfRangeMultiplier]](Owner akOwner, float afMult)
**Sets the object's current out of range multiplier.
 
*Function [[SetProjectileOverride - InstanceData|SetProjectileOverride]](Owner akOwner, Projectile akProj)
**Sets the object's current projectile override.
 
*Function [[SetReach - InstanceData|SetReach]](Owner akOwner, float afReach)
**Sets the object's current reach.
 
*Function [[SetReloadSpeed - InstanceData|SetReloadSpeed]](Owner akOwner, float afSpeed)
**Sets the object's current reload speed.
 
*Function [[SetResist - InstanceData|SetResist]](Owner akOwner, ActorValue akResist)
**Sets the object's current resist ActorValue.
 
*Function [[SetSightedTransition - InstanceData|SetSightedTransition]](Owner akOwner, float afSeconds)
**Sets the object's current sighted transition time.
 
*Function [[SetSkill - InstanceData|SetSkill]](Owner akOwner, ActorValue akSkill)
**Sets the object's current skill ActorValue.
 
*Function [[SetSpeed - InstanceData|SetSpeed]](Owner akOwner, float afSpeed)
**Sets the object's current speed.
 
*Function [[SetStagger - InstanceData|SetStagger]](Owner akOwner, int aiStagger)
**Sets the object's current stagger.


*Function [[SetWeight - InstanceData|SetWeight]](Owner akOwner, float afWeight)
**Sets the object's current weight.


== Member Functions ==
== Member Functions ==
Anonymous user