Jump to content
Sign in to follow this  
galzohar

killed by bluefor but not by opfor - possible?

Recommended Posts

Is it possible to have a mission end when a bluefor soldier kills a civilian, but not when an opfor kills/damages a civilian (or a specific unit)? Or do all the things that mess up scoring also mess up detecting which side is responsible for the civilian's death?

Share this post


Link to post
Share on other sites

Trigger: Civilian/ Present/Once

On Act:

{_x addeventhandler ["killed", {[_this select 0, _this select 1] execVm "death.sqf"}]} foreach thislist;

death.sqf

_Civ = _this select 0;
_west = _this select 1;
hint format["A %1 was killed by %2",_civ,_west];
sleep 5;
if (side _west == west) then
{
endmission "end1";
};

Share this post


Link to post
Share on other sites

I mean, won't this have issues like if you damage the vehicle to the point where after X seconds it starts to burn and that kills the driver, will the event handler realize that you were the killer? I'd expect this kind of handling to have the same issues as proper scoring.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×