Players dying sometimes when deploying vehicleFixed
5d1cc3cfc435f.png moussedu594
It’s been happening since I deleted the files

if(vehicle.mountPoints !=null&& vehicle.mountPoints.Count >0){var driverSeat = vehicle.mountPoints.FirstOrDefault()?.mountable;if(driverSeat !=null){ driverSeat.MountPlayer(player); player.SendNetworkUpdate();}}

Sorry I was asking the author if he is planning on fixing it. @Orange

I'm not really a programmer myself, just tried fixing the problem by trial and error

Havent heard of any problems with my "fix" except for scrap heli crushing players when the scrap heli is spawned too closely to them.

Minicopters should work fine as far as I know

in fact the player no longer gets killed by descending from the minicopter, but by posing the minicopter, the minicopter is propelled
Is it possible to stop players from teleporting into the vehicle when they place it?  It is killing players randomly. 
Servers love this mod, but we are experincing the same random deaths on deployment. Will there be a fix
Remove lines 136 to 144 to prevent mounting players to the vehicles.
                if (vehicle.mountPoints != null && vehicle.mountPoints.Count > 0)
                {
                    var driverSeat = vehicle.mountPoints.FirstOrDefault()?.mountable;
                    if (driverSeat != null)
                    { 
                        driverSeat.MountPlayer(player);
                        player.SendNetworkUpdate();
                    }
                }​
5df121d013ded.png runescape
Remove lines 136 to 144 to prevent mounting players to the vehicles.
                if (vehicle.mountPoints != null && vehicle.mountPoints.Count > 0)
                {
                    var driverSeat = vehicle.mountPoints.FirstOrDefault()?.mountable;
                    if (driverSeat != null)
                    { 
                        driverSeat.MountPlayer(player);
                        player.SendNetworkUpdate();
                    }
                }​

Thanks for the help you are a lifesaver.  I am not sure why but the line numbers didn't match up for me but I just searched for mountpoints and was able to find it. For anyone else has that had that issue.  Thanks again

When i delete those lines the json file checker says
Parse error on line 1: using System.Collect ^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
Any idea why

Should be fixed with last update

Should be fixed with last update

The issue is you are using MountPlayer when AttemptMount should be used.

That will fix this issue but it will create a new issue where they can be crushed by the vehicle instead when it spawns on top of them and fails to mount them 

So the solution to both issues is to verify it has a valid dismount position before spawning the vehicle, or spawn the vehicle away from them and use AttemptMount. The third option is to spawn it away from them and do not mount them at all. Of course this would require that you verify it will not clip into the geometry of another object

Locked automatically