function CpuManager:Update() if (Corsix_DoScarString ~= nil) then Corsix_DoScarString("print(\"Hello SCAR from AI" .. player_id .. "\")") endYou like?
Calling Corsix_DoScarString will not return any value/error, even if the LUA string you give it to execute is invalid or results in an error. Would you prefer a true/false return value to indicate success?
Also, as you'll need to change the DllName= bit in the module file, shall I copy the game manager enabling code from WXPMod_DCMod into this?
Edited by Corsix, 30 November 2006 - 07:05 PM.