antstubell Posted October 23, 2019 Share Posted October 23, 2019 Two weapons, same script, same properties. Different image space results. The two screenshots and video will explain. Why do I see the image soace modifier for 1 weapon but not the other?Two posts because stupid upload limit. Link to comment Share on other sites More sharing options...
antstubell Posted October 23, 2019 Author Share Posted October 23, 2019 Zweihabder weapon...Video...https://onedrive.live.com/?cid=B60C11D037429D8E&id=B60C11D037429D8E%2151478&parId=B60C11D037429D8E%21191&o=OneUp Link to comment Share on other sites More sharing options...
IsharaMeradin Posted October 24, 2019 Share Posted October 24, 2019 The one that does not get the effect, is it always that weapon? Or does it get the effect if it is the one equipped first? Link to comment Share on other sites More sharing options...
maxarturo Posted October 24, 2019 Share Posted October 24, 2019 (edited) . Edited October 24, 2019 by maxarturo Link to comment Share on other sites More sharing options...
antstubell Posted October 24, 2019 Author Share Posted October 24, 2019 @IsharaMeradinI 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 soundActor Property PlayerREF AutoEffectShader Property RedFX autoGlobalVariable Property FirstEquip AutoMessage Property WeapInfo AutoSpell Property MySpell AutoSound Property My_Heartbeat_ AutoImageSpaceModifier Property MyVFX AutoIdle Property MyIdle AutoIdle Property MyIdleEnd Autoint instanceID ;used to store sound refEvent OnEquipped(Actor akActor)if (akActor == PlayerRef)PlayerREF.AddSpell(MySpell)If FirstEquip.GetValue() == 0WeapInfo.show()FirstEquip.SetValue(1)EndifMyVFX.Apply()instanceID = My_Heartbeat_.Play(PlayerRef)PlayerRef.PlayIdle(MyIdle)RedFX.Play(self)EndIfEndEvent;-------------------------------------------------------------------Event OnUnequipped(Actor akActor)if (akActor == PlayerRef)PlayerREF.RemoveSpell(MySpell)MyVFX.Remove()StopInstance(instanceID)PlayerRef.PlayIdle(MyIdleEnd)RedFX.Stop(self)EndIfEndEvent Link to comment Share on other sites More sharing options...
Evangela Posted October 24, 2019 Share Posted October 24, 2019 Scripts on objects are instances of that script, therefore their properties will be different if they are set on the reference. Link to comment Share on other sites More sharing options...
antstubell Posted October 24, 2019 Author Share Posted October 24, 2019 ?RasikkoWhich means? Link to comment Share on other sites More sharing options...
Evangela Posted October 25, 2019 Share Posted October 25, 2019 Nevermind, your first 2 posts displays what I thought you didn't understand. Link to comment Share on other sites More sharing options...
Recommended Posts