Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to call global `BeginObjectives' (a nil value)
stack traceback:
(none): in function <(none):43>
And this is what I've got in my LUA. I've checked it with some campaign scripts but it's still the same.
Why is BeginObjectives a nil value?! =/ It does work in the developer campaign scripts too.
In addition, the ewoks are just for my test.
LUA:
Hidden/Spoiler:
[code]function ScriptPostLoad()
EnableSPHeroRules()
KillObject("zombie1")
onfirstspawn = OnCharacterSpawn(
function(character)
if IsCharacterHuman(character) then
ReleaseCharacterSpawn(onfirstspawn)
onfirstspawn = nil
time = OnTimerElapse(
function(timer)
ShowTimer(nil)
--SetObjectTeam("zombie1", 3)
ShowMessageText("level.trd.wave1",ALL)
ShowMessageText("level.trd.wave1",IMP)
BeginObjectives() <--- Here it does stop
ReleaseTimerElapse(time)
DestroyTimer(timer)
end,
timePop