Files
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

47 lines
687 B
Plaintext

fsm StockDestroyObjective : integer;
const
#include_ <content\ABLScripts\mwconst.abi>
type
#include_ <content\ABLScripts\mwtype.abi>
var
static ObjectID objective;
function CheckIfObjectiveDestroyed(ObjectID obj) : integer;
var
ObjectID who_killed;
code
if (obj <> -1) then
if (IsDead(obj) == true) then
who_killed = WhoDestroyed(obj);
// TODO: objective dead
endif;
endif;
endfunction;
function init;
code
objective = -1;
SetupScoring_DestroyObjective;
endfunction;
state startState;
code
CheckIfObjectiveDestroyed(objective);
endstate;
state deadState;
code
endstate;
endfsm.