CrewEntryWS sometimes returns zero position in Actions like ActionGetOutTransport in Start function
more players or passengers on the server - more chances to get vector.Zero coordinates
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 7
- Category
- General
Steps To Reproduce
modded class ActionGetOutTransport : ActionInteractBase { override void Start(ActionData action_data) { PlayerBase player = action_data.m_Player; HumanCommandVehicle vehCmd = player.GetCommand_Vehicle(); Car car; int m_crewIdx; vector ex_Position, ex_Direction; if (vehCmd) { Transport trans = vehCmd.GetTransport(); if (trans) { if (Class.CastTo(car, trans)) { m_crewIdx = car.CrewMemberIndex(player); car.CrewEntryWS(m_crewIdx, ex_Position, ex_Direction); super.Start(action_data); } } } } }