My protect-the-flag mode code has progressed somewhat, but I'm having trouble with a side objective that starts out like this:
I get this in the error log:
Code: Select all
Ok, OnFlagPickUp works....
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "0" not found
So it seems that OnFlagPickUp works, but GetEntityClass doesn't. I've tried variations like GetEntityClassName, GetEntityClass(GetCharacterUnit(picker)), GetCharacterClass, and GetCharacterUnit. None seem to work. Why is that?
And another little thing related to it but not to the code: is there any way to allow units to use jetpacks when they have the flag?