Page MenuHomeFeedback Tracker

CrewEntryWS sometimes returns zero position in Actions
Assigned, UrgentPublic

Description

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

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);
				}
			}
		}	
	}
}

Event Timeline

borizz.k created this task.Oct 3 2020, 2:33 PM
Geez changed the task status from New to Assigned.Oct 5 2020, 11:54 AM