Difference between revisions of "RemoteCast - Spell"

937 bytes added ,  10:16, 2 June 2023
m
→‎Notes: Added link to the mod which addresses the issue concerning Dual Casting.
imported>MofoMojo
m (→‎Notes: Added link to the mod which addresses the issue concerning Dual Casting.)
 
(6 intermediate revisions by 3 users not shown)
Line 12: Line 12:


== Parameters ==
== Parameters ==
*akSource: The [[ObjectReference Script|ObjectReference]] from which to cast the spell.  The source must be able to cast this spell.
*akSource: The [[ObjectReference Script|ObjectReference]] from which to cast the spell.  The source must be able to cast this spell (testings seem to show anything will work, regardless whether they have the spell or not).
*akBlameActor: The [[Actor Script|Actor]] who will be taking blame for the spell if adding it to a target would cause a crime.  
*akBlameActor: The [[Actor Script|Actor]] who will be taking blame for the spell if adding it to a target would cause a crime. The spell's magic effects will scale with the actor if applicable.
*akTarget: An optional [[ObjectReference Script|ObjectReference]] at which to aim the spell. If None is passed and the spell needs a direction, it will be aimed in a default direction.
*akTarget: An optional [[ObjectReference Script|ObjectReference]] at which to aim the spell. If None is passed and the spell needs a direction, it will be aimed in a default direction.
**'''Default''': None
**'''Default''': None
Line 35: Line 35:
*If you wish to make an actor cast a spell using all the normal spellcasting behaviors, please instead use an AI package that includes the [[Procedure_UseMagic|UseMagic procedure]].
*If you wish to make an actor cast a spell using all the normal spellcasting behaviors, please instead use an AI package that includes the [[Procedure_UseMagic|UseMagic procedure]].
*Actor races can be set to cast magic only in the direction that the actor is facing; if the source is an actor with this racial setting, this parameter will be ignored.
*Actor races can be set to cast magic only in the direction that the actor is facing; if the source is an actor with this racial setting, this parameter will be ignored.
*It seems that using this function on an actor that doesn't have the spell will work. To add, it will also work on Objects, such as a rock.
*Using this function will invalidate (cause it to return 0/false when it should return 1/true) any ongoing '''isDualCasting''' checks on akSource.
**'''isDualCasting''' will continue to return false until akSource stops dual casting.
**There is now a fix for above issue found there: [https://www.nexusmods.com/skyrimspecialedition/mods/92454 Po3's Dual Casting Fix]
*While spells will scale with and assign blame to akBlameActor, akSource is considered the 'owner' of the spell, and as such, projectiles will collide with akBlameActor, and '''Summon Creature''' archetype effects will create an instance of the summoned actor for akSource.


== See Also ==
== See Also ==
27

edits