Playing an effect on an entity on the first server frame will play it on (0, 0, 0) instead

Describe the bug:
Playing an effect on an entity on the first server frame will play it on (0, 0, 0) instead

How do you cause this bug?

  • On Init spawn an entity - Set the entity position to something different then (0, 0, 0), e.g. (100, 100, 100)
  • Call entity:PlayEffect(effectasset)
  • The effect will not play on the entity position, but at (0, 0, 0) instead

Which platform: PC

Which input: keyboard + mouse

Your Crayta username: Vilva#9953

Game seen in (including “Hub” or “Editor for XYZ”): Editor for “Farming Blueprint”

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time

Time + date seen: 13.08.2022

Version number (found in Help tab in Settings): 0.g3.9.128732

Hi @Vilva,

Could you possibly outline a set of steps for me to reproduce this with please? E.g I found your game Farming Test, is there an entity in that game that has been set to somewhere other than the origin which has an effect played on it which is playing at 0,0,0 instead?

Hey @QA_NFraser ,

I did a quick test with this script and the bug did not occur

local EffectBugTest = {}

-- Script properties are defined here
EffectBugTest.Properties = {
	{name = "entity", type = "template", },
	{name = "effectAsset", type = "effectasset", },
}

--This function is called on the server when this entity is created
function EffectBugTest:Init()
	local entity = GetWorld():Spawn(self.properties.entity, Vector.New(1000, 1000, 1000), Rotation.Zero)
	entity:PlayEffect(self.properties.effectAsset)
end

return EffectBugTest

So it seems like there must be more conditions fulfilled. You can close this post for now and I’m gonna update it if I find out more.

1 Like

Alrighty, thanks for rechecking this!

1 Like