Hi,
how to force mission lost without having killing all team?
I tried:
Code:
int oldFlags = GetCommandFlags("scenario_end");
SetCommandFlags("scenario_end", oldFlags & ~(FCVAR_CHEAT | FCVAR_LAUNCHER));
ServerCommand("scenario_end");
ServerExecute();
SetCommandFlags("scenario_end", oldFlags);
(the code from
No Death Check Until Dead plugin.)
But calling it just in arbitrary place has no effect.
Also:
Code:
Event hEvent = CreateEvent("mission_lost");
if (hEvent != null)
{
hEvent.Fire(true);
}
with no luck. Of course, it's just post-event, but I had to try it.
Ideas? Thanks.
__________________