I can make a script which does activate when the player performs a unrelenting force shout at a trigger but the problem is that everything that enters said trigger will activate the script and if I put a conditional statement which checks if the ActionRef is a shout it will just return with a error.
Heres the script that I got right now:
Scriptname wdpAttackTestScript extends ObjectReferenceshout property ForceShout autoEvent OnTriggerEnter(ObjectReference akActionRef)if (akActionRef == ForceShout)debug.MessageBox("it wurkd lol")endIfendEvent
This is the error that I get:
Starting 1 compile threads for 1 files...Compiling "wdpAttackTestScript"...C:\steamgames\steamapps\common\skyrim\Data\Scripts\Source\wdpAttackTestScript.psc(6,16): [u][b]cannot compare a objectreference to a shout (cast missing or types unrelated)[/b][/u]No output generated for C:\steamgames\steamapps\common\skyrim\Data\Scripts\Source\wdpAttackTestScript.psc, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on C:\steamgames\steamapps\common\skyrim\Data\Scripts\Source\wdpAttackTestScript.pscC:\steamgames\steamapps\common\skyrim\Data\Scripts\Source&--#62;pausePress any key to continue . . .[Finished in 1.5s]
But removing the conditional statement works just fine but of course then everything that enters the trigger that is considered an objectreference will activate the script.
EDIT:
I just tired this:
Scriptname wdpAttackTestScript extends ObjectReference MagicEffect property ForceShout auto Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)if (akEffect == ForceShout)debug.MessageBox("it wurkd lol")endIfendEvent
Did not work