alloowishus
July 17th, 2023, 06:08
For instance, I have added some code that when a custom effect called "Food" expires, I want to add an effect called "Dying" with a certain duration.
the function has the nodeActor and sEffect passed to it, this is my code
if sEffect == "Food" then
local rActor = ActorManager.resolveActor(nodeActor);
local nodeCT = ActorManager.getCTNode(rActor);
EffectManager.addEffect("", "", nodeCT, { sName = "Dying", sApply = "action", nDuration = 1000, nInit = -1, nGMOnly = 0 }, true);
end
I get an error saying "Invalid parameter 1".
Any dieas? Thanks!
the function has the nodeActor and sEffect passed to it, this is my code
if sEffect == "Food" then
local rActor = ActorManager.resolveActor(nodeActor);
local nodeCT = ActorManager.getCTNode(rActor);
EffectManager.addEffect("", "", nodeCT, { sName = "Dying", sApply = "action", nDuration = 1000, nInit = -1, nGMOnly = 0 }, true);
end
I get an error saying "Invalid parameter 1".
Any dieas? Thanks!