Bmhggg Posted August 12, 2020 Share Posted August 12, 2020 Does anyone know how to make this work on the touchscreen? local function getstatus(inst) if TheInput:IsKeyDown(KEY_ALT) then local home = FindEntity(inst, 10, function(ent) return ent.components.prototyper and ent:HasTag('critterlab') end) if home then local x,y,z = home.Transform:GetWorldPosition() inst:SetBrain(nil) inst.sg:GoToState('idle') inst.components.locomotor:GoToPoint(Point(x+0.5, y, z+0.5),nil,true) --GetPlayer().components.leader:RemoveFollower(inst) inst:DoTaskInTime(1.5,function() inst:Remove() end) end end end Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.