I'm trying to enable a particle effectt and make it play at a specific location.
But I just can't get it right. Simply playing it and updating it's location to the wanted location sends the particle effect all over the map.
I was thinking it may be using the location of the object it's a part of, and that I needed to subtract that location.
But it's still way off:
(If the video is not available, it may still be uploading. Give it a moment)
As you can see there's also other issues, it interpolates really quickly while moving, and it's upside down. You can also see it moves down when it should move up, and vice versa.
Here's the relevant code;
My PlayerController:
TempTarget is my wanted location.Code:SMRightWeaponAttachment_Laser(RightWeaponInstance).UpdateHitGlow(TempTarget-Pawn.Location);
The object holding the component:
Code:simulated function UpdateHitGlow(vector HitLocation) { PSC_HitGlow.SetTranslation(HitLocation); }



Reply With Quote


Bookmarks