new hook call method + function to delegate conversion
This commit is contained in:
+2
-2
@@ -80,9 +80,9 @@ namespace Barotrauma
|
||||
|
||||
public void AddObjective<T>(T objective) where T : AIObjective
|
||||
{
|
||||
var result = new LuaResult(GameMain.LuaCs.HookBase.Call("AI.AddObjective", this, objective));
|
||||
var result = GameMain.LuaCs.Hook.Call<bool?>("AI.AddObjective", this, objective);
|
||||
|
||||
if (result.Bool()) return;
|
||||
if (result != null && result.Value) return;
|
||||
|
||||
if (objective == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user