Jump to content
Sign in to follow this  
doomnet

Bis friendly fire editor module setup !?

Recommended Posts

Hi does someone here on the forums used this module before ?

I tested it in mission on local server when grouping units to the module, it works you get kicked from the mission after killing one team mate.

 

There is no options in the module to set for example after 3 kills kick the player or something like that, only a init field.

Also does someone knows what to use if the module is sync to a trigger in condition field ?

 

I searched the web but there is nothing on that module explained or mission examples !

 

I want to achieve players fire the module when they abuse teamkill with a trigger !

 

I'm gonna try to search a solution if someone can help me would be nice!

 

thanks

Share this post


Link to post
Share on other sites
Guest

Maybe it just disables the friendly fire.

If you want to create your own system feel free to use the EHs :).

Share this post


Link to post
Share on other sites

You mean using EHs in trigger conditions or in a file ?

 

because i have something like this :

 

tk.sqf

player addEventHandler ["Killed", {
    If (IsNil "Killed") Then {Killed = 1};
        
    params ["_killed", "_killer"];
           
    if !(_killed isEqualTo _killer) then {
                
        if ((side _killed) isEqualTo (side _killer)) then {
            If (killed == 1) then playsound "warning";
            If (killed == 2) then playsound "warning";
            If (killed == 3) then {EndMission "LOSER"};
            Hint Format ["Team kill is forbidden\n %1/3 Attempts", killed];
            killed = killed + 1;
	 };
     };
}];	

I just try something don't know even how to use it and where to use it, or if it works also !!!

Any help on this would be very appreciated !!!

Share this post


Link to post
Share on other sites

and i use this in init.sqf

{_x AddEventHandler ["killed", {ExecVM "scripts\tk.sqf"}]} ForEach AllUnits;

i got no error message but nothing happens when testing it, i tested with AI players don't know if that makes difference !

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  

×