EH "handleDamage" ((_this select 3) == (_this select 0)) returns true when driver present!! {F26828} {F26829}
Description
Details
- Legacy ID
- 3313278819
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Firing from Vehicles
start a server.
start a headless Client (name player must be "HC")
optional start a headless Client (name player must be "HC1")
optional start a headless Client (name player must be "HC2")
play the HCTEST2.VR.pbo
HC : The Car Pops up left is an unarmed Civilian Offroader and crew is side resistance!!!
HC1: The Car Pops up middle is an unarmed Civilian Truck and crew is side civilian!!!
HC2: The Car Pops up right is an armed FIA Offroad and crew is side west!!!
shot at the car when driver is not present = damage source is side WEST.
shot at the car when driver is present = damage source is side driver car.
Event Timeline
i have it :)
start a server.
start a headless Client (name player must be "HC")
optional start a headless Client (name player must be "HC1")
optional start a headless Client (name player must be "HC2")
play the HCTEST2.VR.pbo
HC : The Car Pops up left is an unarmed Civilian Offroader and crew is side resistance!!!
HC1: The Car Pops up middle is an unarmed Civilian Truck and crew is side civilian!!!
HC2: The Car Pops up right is an armed FIA Offroad and crew is side west!!!
shot at the car when driver is not present = damage source is side WEST.
shot at the car when driver is present = damage source is side driver car
shot at the car when driver dead but still present = damage source is side driver car
this have to be fixed immediately!
Error description is:
EH "handleDamage" (_this select 3) == (_this select 0)
further the createUnit "ARRAY" has the following malfunction:
_grp = creategroup resistance;
_unit = _grp createUnit [_unittype,_pos, [], 0, "FORM"];
the side of the _unit is still it´s default side!
for what u need _grp in front of createUnit???
a temporary fix is to use the eventhandler "handleDamage" in this way:
_object addEventHandler ["HandleDamage", {
private ["_return"];
if ((_this select 3) == (_this select 0)) then {_return = (_this select 2)} else {
////
your code here
////
};_return}];