Jump to content

Crash when creating/getting a dart


Recommended Posts

Crash when creating/getting a dart.

if you are an admin, then there will be no crash, but other users will have a crash.

local function Homing(inst)
	inst.components.projectile:SetSpeed(30)
	inst.components.projectile:SetHoming(false)
end

local blowdarts = {"blowdart_sleep", "blowdart_fire", "blowdart_pipe", "blowdart_yellow"}
for k,v in pairs(blowdarts) do
	AddPrefabPostInit(v, Homing)
end

client_log.txt

Edited by kipper0k
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
 Share

×
  • Create New...