bumyplum 10 Posted August 18, 2019 I'm attempting to make it so when you shoot a vehicle the bullet doesn't collide with the vehicle but it collides with the person inside of it, here is what i've tried but doesnt seem to work. Any infomation is helpful, thanks. player RemoveEventHandler ["FiredMan" _opa]; _opa = player addEventHandler ["FiredMan", { params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"]; _projectile disableCollisionWith cursorTarget; }]; and also player addEventHandler ["Fired", { _bullet = _this select 6; [_bullet] remoteExec ["disableCollisionWith", cursorObject]; }]; Share this post Link to post Share on other sites
bumyplum 10 Posted August 18, 2019 I've also tried player RemoveEventHandler ["Fired" _opa]; _opa = player addEventHandler ["Fired", { _bullet = _this select 6; _head = eyePos driver vehicle cursorTarget; _bullet setPosASL _head; }]; Share this post Link to post Share on other sites
wogz187 1086 Posted August 19, 2019 Interesting concept. Maybe give the car an EH when hit it damages the occupants and the car. Maybe not exactly what you want but much easier. Event Handler car1 addEventHandler ["HitPart", {((_this select 0) select 0); execVM "damCAR.sqf"; {((_this select 0) select 0) RemoveEventHandler ["HitPart",0]}}]; damCAR.sqf carCREW= group car1d; { _x setDammage 0.3; } forEach units group carCREW; Or just put the script in the EH depending on what you're doing. 2 Share this post Link to post Share on other sites