Break Legs
guys i need a script to break the enemy legs. I took the old script to remake it.
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase", 1000]);
{
if (name _x == _this select 0) then {
_pos = _x modelToWorld [0,0,2];
_bullet = "MeleeFist" createVehicleLocal _pos;
_bullet setVelocity [0, 0, -50];
};
} ForEach _entities;
};
I got this:
***
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase", 1000]);
{
if (name _x == _this select 0) then
{
setHit ["Legs", 1];
};
} ForEach _entities;
};
tell me how to make this script work.
sorry for my bad English. google - translator
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase", 1000]);
{
if (name _x == _this select 0) then {
_pos = _x modelToWorld [0,0,2];
_bullet = "MeleeFist" createVehicleLocal _pos;
_bullet setVelocity [0, 0, -50];
};
} ForEach _entities;
};
I got this:
***
_entities = (positionCameraToWorld [0,0,0] nearObjects ["SurvivorBase", 1000]);
{
if (name _x == _this select 0) then
{
setHit ["Legs", 1];
};
} ForEach _entities;
};
tell me how to make this script work.
sorry for my bad English. google - translator
