PDA

View Full Version : Trying to get ct node from rSource



alloowishus
November 11th, 2024, 01:57
i in the manager_action_stat.lua script the function is

function modRoll(rSource, rTarget, rRoll)

I am trying to get the CT node I have tried

nodeCT = ActorManager.getCTNode(rSource);
nodeCT = ActorManager.getCTNode(rTarget);

none work. Any ideas? thanks.

damned
November 11th, 2024, 02:09
So the first thing you want to do is discover what is being received in the function.



function modRoll(rSource, rTarget, rRoll)
Debug.chat("rSource: ", rSource);
Debug.chat("rTarget: ", rTarget);
Debug.chat("rRoll: ", rRoll);
end

Moon Wizard
November 11th, 2024, 16:41
Also, is the source actor being passed in the original roll?


function performRoll(draginfo, rActor, sSave)
local rRoll = ActionSave.getRoll(rActor, sSave);
ActionsManager.performAction(draginfo, rActor, rRoll);
end


Regards,
JPG

alloowishus
November 11th, 2024, 18:58
Also, is the source actor being passed in the original roll?


function performRoll(draginfo, rActor, sSave)
local rRoll = ActionSave.getRoll(rActor, sSave);
ActionsManager.performAction(draginfo, rActor, rRoll);
end


Regards,
JPG

I figured it out, it was rSource I just had wonky code. THanks.