Jump to content

How to configure prefab spawning time?

Recommended Posts

I need to somehow copy Ancient cane's effect 

if inst.form == "shadow" and not inst:HasTag("INLIMBO") then
   local x, y, z = inst.Transform:GetWorldPosition()
   local xoffset = math.random(-10,10)/10
   local zoffset = math.random(-10,10)/10
   SpawnPrefab("cane_ancient_fx").Transform:SetPosition(x+xoffset, y, z+zoffset)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...