More updates to scripts (still wont build)

This commit is contained in:
hondacrx
2023-10-13 16:11:34 -04:00
parent cda53c8e7f
commit 33091ed942
26 changed files with 4195 additions and 2894 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
using Framework.Constants;
using Game;
using Game.AI;
using Game.DataStorage;
using Game.Entities;
using Game.Scripting;
using Game.DataStorage;
namespace Scripts.Smart
{
@@ -126,7 +126,7 @@ namespace Scripts.Smart
Log.outDebug(LogFilter.ScriptsAi, $"Event {eventId} is using SmartEventTrigger script");
SmartScript script = new();
// Set invoker as BaseObject if there isn't target for GameEvents::Trigger
script.OnInitialize(obj?? invoker, null, null, null, eventId);
script.OnInitialize(obj ?? invoker, null, null, null, eventId);
script.ProcessEventsFor(SmartEvents.SendEventTrigger, invoker.ToUnit(), 0, 0, false, null, invoker.ToGameObject());
}
}