Akiwoofer

  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Akiwoofer

  • Rank
    Junior Member
...
  1. It Shows this once I replaced the .5 and 1 with 100 and 200 respectively
  2. -- Panic mode local panicmode = false local function panicfn (inst) if panicmode == false and inst.components.health.currenthealth == .5 then --Transformation local x, y, z = inst.Transform:GetWorldPosition() local fx = SpawnPrefab("maxwell smoke") SpawnPrefab("statue_transition").Transform:SetPosition(inst:GetPosition():Get()) inst.AnimState:SetBuild("aki") --Stat changes inst.components.combat.damagemultiplier = 2.5 inst.components.locomotor.walkspeed = 5 inst.components.locomotor.runspeed = 7 inst.components.talker:Say("WAIT STOP!") if inst.components.healthtrigger ~= nil then end panicmode = true end if panicmode == true and inst.components.health.currenthealth == 1 then local x, y, z = inst.Transform:GetWorldPosition() local fx = SpawnPrefab("maxwell smoke") SpawnPrefab("statue_transition").Transform:SetPosition(inst:GetPosition():Get()) inst.AnimState:SetBuild("aki_panic") inst.components.combat.damagemultiplier = 1 inst.components.locomotor.walkspeed = 3 inst.components.locomotor.runspeed = 5 if inst.components.healthtrigger ~= nil then end panicmode = false end if inst.components.healthtrigger ~= nil then end end inst.components.healthtrigger:AddTrigger(panicfn) When I apply this to my character It keeps on crashing, I really need help
  3. Thanks for this one, but im a noob in coding so im not able to find out whats the trigger and the stat changes haha-
  4. So I'm trying to code a "Panic mode" for my character and I can't seem to find a code that would trigger a transformation based off the character's health, such as when the character is at 50% hp it starts panicking. Therefore it's transformation