- Found in:
- Andrealphus PE
voidfunctionLaunchMagicSpell(ActorakCaster, SpellakSpell, stringsNodeName="", ObjectReferenceakTarget=NONE, ProjectileakProjectile, ObjectReferenceOriginSecondRef=NONE)NativeGlobal
Description
Documentation String
- akCaster: the caster.
- akSpell: the spell to cast.
- sNodeName: the name of the skeleton bone node of the akCaster, the spell is launched from. If empty, it will be cast from the origin point of akCaster or OriginSecondRef (only if filled.)
- akTarget: the target the spell is aimed at, for the player. (might cause issues if none)
- akProjectile: the projectile that's being used.
- OriginSecondRef: an optional second ref to launch the spell from (as proxy). If not None, NodeSource will be taken from this ref, instead of akCaster.
Parameters
ActorakCaster
SpellakSpell
stringsNodeName=""
ObjectReferenceakTarget=NONE
ProjectileakProjectile
ObjectReferenceOriginSecondRef=NONE
Examples
Auto-Generated Example
Actor myActor__akCaster
Spell mySpell__akSpell
string myString__sNodeName
ObjectReference myObjectReference__akTarget
Projectile myProjectile__akProjectile
ObjectReference myObjectReference__OriginSecondRef
ANDR_PapyrusFunctions.LaunchMagicSpell(myActor__akCaster, mySpell__akSpell, myString__sNodeName, myObjectReference__akTarget, myProjectile__akProjectile, myObjectReference__OriginSecondRef)