Search the Community
Showing results for tags 'movement speed'.
-
Hello again , i got another few questions. At first, I want my character to be able to eat mushrooms without any disadvantages. I tried to use code from Webber, but I just found something like "strongstomach", but this doesn't help me. Furthermore I want to add teleportation like the teleportation of Wortox to my character. I copied some code from Wortox to my characters code, so I am able to teleport now, but there is a problem... if I drop a soul it will heal me and I dont know how to change this. This is the code I've added to my character: local function GetPointSpecialActions(inst, pos, useitem, right) if right and useitem == nil and inst.replica.inventory:Has("wortox_soul", 1) then local rider = inst.replica.rider if rider == nil or not rider:IsRiding() then return { ACTIONS.BLINK } end end return {} end local function OnSetOwner(inst) if inst.components.playeractionpicker ~= nil then inst.components.playeractionpicker.pointspecialactionsfn = GetPointSpecialActions end end -- In master_postinit: inst:AddTag("soulstealer") inst:ListenForEvent("setowner", OnSetOwner) inst._checksoulstask = nil I want to add a soul as non-consumable startitem, so it is a startitem right now, but if I use it, it will disappear. Thank you for your help
- 2 replies
-
- teleportation
- movement speed
-
(and 1 more)
Tagged with: