Can anyone spot what am I doing wrong here?
Script_UnitAffectingCombat = 0x1CC149 (rebased)
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate bool UnitAffectingCombatDelegate(String name);
private static UnitAffectingCombatDelegate _unitAffectingCombat;
...
var unitAffectingCombat = IntPtr.Add(Game.Memory.ImageBase, (int)FunctionOffsets.Script_UnitAffectingCombat);
_unitAffectingCombat = Game.Memory.CreateFunctionDelegate<UnitAffectingCombatDelegate>(unitAffectingCom bat);
I have been calling this with the following...
_unitAffectingCombat("player") or _unitAffectingCombat("party1") etc...
Any help will be appreciated.