Jump to content

Recommended Posts

These events are in the combat component,right?

 

I know this code isn't right, but i'm going the right way?

 

local Rage = function(inst)
 
inst:ListenForEvent("attacked", function(inst,data) end) 
end)
 
 
local function ToRage()
     To rage this needs to happen.
 
end 
 
Edited by TheShadeofTheNorth
local Rage = function(inst)    local player = GetPlayer()    local init_damage = damageinst:DoPeriodicTask(1, function()   if damage > 0 and self.inst.components.health:IsInvincible() == false then     local RageChance  = math.random()end if RageChance > 0.5 then             inst.components.combat.damagemultiplier = TUNING.WATHGRITHR_DAMAGE_MULT * 2inst.components.locomotor.walkspeed = 12    inst.components.locomotor.runspeed = 12else inst.components.combat.damagemultiplier = TUNING.WATHGRITHR_DAMAGE_MULT inst.components.locomotor.walkspeed = 4    inst.components.locomotor.runspeed = 6endend)end

I'm messing with the code , no crashes, but it isn't working, i think.

Edited by TheShadeofTheNorth

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...