Jump to content

Identical script & properties = different results?


antstubell

Recommended Posts

@IsharaMeradin

I have 3 weapons and 1 shield that use the effect. Only the Zweihander sword does not work. I can equip them/unequip them in any order and the effect works every time except - Zweihander. I know I have an effect shader and a image space modifier both being used at the same time but even clearing the effect shader property still the Zweihander will not produce the image space modifier when all the others will.

The script...

 

import sound

Actor Property PlayerREF Auto
EffectShader Property RedFX auto
GlobalVariable Property FirstEquip Auto
Message Property WeapInfo Auto
Spell Property MySpell Auto
Sound Property My_Heartbeat_ Auto
ImageSpaceModifier Property MyVFX Auto
Idle Property MyIdle Auto
Idle Property MyIdleEnd Auto
int instanceID ;used to store sound ref

Event OnEquipped(Actor akActor)
if (akActor == PlayerRef)
PlayerREF.AddSpell(MySpell)
If FirstEquip.GetValue() == 0
WeapInfo.show()
FirstEquip.SetValue(1)
Endif
MyVFX.Apply()
instanceID = My_Heartbeat_.Play(PlayerRef)
PlayerRef.PlayIdle(MyIdle)
RedFX.Play(self)

EndIf
EndEvent
;-------------------------------------------------------------------
Event OnUnequipped(Actor akActor)
if (akActor == PlayerRef)
PlayerREF.RemoveSpell(MySpell)
MyVFX.Remove()
StopInstance(instanceID)
PlayerRef.PlayIdle(MyIdleEnd)
RedFX.Stop(self)

EndIf
EndEvent

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...