Background for Skyrim SE
Member of the ANDR_PapyrusFunctions script
voidfunctionCastSpellFromHand(ActorakSource, SpellakSpell, boolIsLeftHand, floatDistanceVar=2000.0, floatHeightVar=100.0, floatOffset_NoSneak_Left_X=30.0, floatOffset_NoSneak_Left_Y=30.0, floatOffset_NoSneak_Left_Z=110.0, floatOffset_NoSneak_Right_X=30.0, floatOffset_NoSneak_Right_Y=-30, floatOffset_NoSneak_Right_Z=110.0, floatOffset_Sneak_Left_X=30.0, floatOffset_Sneak_Left_Y=30.0, floatOffset_Sneak_Left_Z=70.0, floatOffset_Sneak_Right_X=30.0, floatOffset_Sneak_Right_Y=-30, floatOffset_Sneak_Right_Z=70.0)Global

Description

Documentation String

; Dislaimer: This can be replaced with LaunchSpellProjectile(), but I'm keeping this function for reference and dependencies.

  • akSource: The caster.
  • akSpell: The spell to cast.
  • IsLeftHand: True if cast from the left hand, false if cast from the right hand.
  • DistanceVar: Optional, the distance from the caster, where the destination marker is spawned. Default is 2000 units.
  • HeightVar: Optional, the height difference at which destination marker is spawned. Default is 100 units.
  • Offset_NoSneak_Left_X: Optional, X Offset for left hand when the actor is not sneaking. Default value is 30.0.
  • Offset_NoSneak_Left_Y: Optional, Y Offset for left hand when the actor is not sneaking. Default value is 30.0.
  • Offset_NoSneak_Left_Z: Optional, Z Offset for left hand when the actor is not sneaking. Default value is 110.0.
  • Offset_NoSneak_Right_X: Optional, X Offset for right hand when the actor is not sneaking. Default value is 30.0.
  • Offset_NoSneak_Right_Y: Optional, Y Offset for right hand when the actor is not sneaking. Default value is -30.0.
  • Offset_NoSneak_Right_Z: Optional, Z Offset for right hand when the actor is not sneaking. Default value is 110.0.
  • Offset_Sneak_Left_X: Optional, X Offset for left hand when the actor is sneaking. Default value is 30.0.
  • Offset_Sneak_Left_Y: Optional, Y Offset for left hand when the actor is sneaking. Default value is 30.0.
  • Offset_Sneak_Left_Z: Optional, Z Offset for left hand when the actor is sneaking. Default value is 70.0.
  • Offset_Sneak_Right_X: Optional, X Offset for right hand when the actor is sneaking. Default value is 30.0.
  • Offset_Sneak_Right_Y: Optional, Y Offset for right hand when the actor is sneaking. Default value is -30.0.
  • Offset_Sneak_Right_Z: Optional, Z Offset for right hand when the actor is sneaking. Default value is 70.0.

Parameters

  1. ActorakSource

  2. SpellakSpell

  3. boolIsLeftHand

  4. floatDistanceVar=2000.0

  5. floatHeightVar=100.0

  6. floatOffset_NoSneak_Left_X=30.0

  7. floatOffset_NoSneak_Left_Y=30.0

  8. floatOffset_NoSneak_Left_Z=110.0

  9. floatOffset_NoSneak_Right_X=30.0

  10. floatOffset_NoSneak_Right_Y=-30

  11. floatOffset_NoSneak_Right_Z=110.0

  12. floatOffset_Sneak_Left_X=30.0

  13. floatOffset_Sneak_Left_Y=30.0

  14. floatOffset_Sneak_Left_Z=70.0

  15. floatOffset_Sneak_Right_X=30.0

  16. floatOffset_Sneak_Right_Y=-30

  17. floatOffset_Sneak_Right_Z=70.0


Examples

Auto-Generated Example

Actor myActor__akSource
Spell mySpell__akSpell
bool myBool__IsLeftHand
float myFloat__DistanceVar
float myFloat__HeightVar
float myFloat__Offset_NoSneak_Left_X
float myFloat__Offset_NoSneak_Left_Y
float myFloat__Offset_NoSneak_Left_Z
float myFloat__Offset_NoSneak_Right_X
float myFloat__Offset_NoSneak_Right_Y
float myFloat__Offset_NoSneak_Right_Z
float myFloat__Offset_Sneak_Left_X
float myFloat__Offset_Sneak_Left_Y
float myFloat__Offset_Sneak_Left_Z
float myFloat__Offset_Sneak_Right_X
float myFloat__Offset_Sneak_Right_Y
float myFloat__Offset_Sneak_Right_Z

ANDR_PapyrusFunctions.CastSpellFromHand(myActor__akSource, mySpell__akSpell, myBool__IsLeftHand, myFloat__DistanceVar, myFloat__HeightVar, myFloat__Offset_NoSneak_Left_X, myFloat__Offset_NoSneak_Left_Y, myFloat__Offset_NoSneak_Left_Z, myFloat__Offset_NoSneak_Right_X, myFloat__Offset_NoSneak_Right_Y, myFloat__Offset_NoSneak_Right_Z, myFloat__Offset_Sneak_Left_X, myFloat__Offset_Sneak_Left_Y, myFloat__Offset_Sneak_Left_Z, myFloat__Offset_Sneak_Right_X, myFloat__Offset_Sneak_Right_Y, myFloat__Offset_Sneak_Right_Z)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.