how to setup an iskeypressed holdtime script

Post » Tue Jul 29, 2014 4:47 pm

my goal is assign the magic effect "VoiceUnrelentingForceEffect3" to a custom destruction spell, and set it up

so that it will only trigger if the spell was charged for atleast 2 seconds.

i intend to do this by editing the built-in script of "voiceunrelentingforceffect3" to include an IF statement,

but i have no idea how the syntax or declarations work for the functions.

ORIGINAL Script:

Event OnEffectStart(actor Target, actor Caster)

 

Caster.PushActorAway(Target, PushForce)

EndEvent

MODIFIED Script IDEA

Event OnEffectStart(Actor Target, Actor Caster)

If (IsKeyPressed(256) holdtime >= 2.0)

Caster.PushActorAway(Target, PushForce)

endif

endevent

User avatar
Cassie Boyle
 
Posts: 3468
Joined: Sun Nov 05, 2006 9:33 am

Return to V - Skyrim