Page MenuHomeFeedback Tracker

Vehicle Service EH
Feedback, NormalPublic


We currently have no way to detect when a vehicles state is being changed by built in services: ammo/fuel/repair

For example, when your vehicle gets close to a vehicle with fuel cargo, your vehicle will begin to refuel automatically.

Applies also to ammo and repair.

Applies also for AI.

Would be useful to have a method of detecting this state change, (and maybe even overriding/blocking it, for cases where we script our own rearms)

<vehicle> addEventHandler [
		params [
			'_vehicle',				// the vehicle being serviced
			'_serviceEntity',		// the entity giving service (fuel pump, repair truck, etc)
			'_type',				// 0 - repair, 1 - fuel, 2 - ammo
			'_oldState',			// prior value (damage _vehicle),(fuel vehicle),(weapon ammo state)
			'_newState'				// new value (damage _vehicle),(fuel vehicle),(weapon ammo state)
			'_serviceEntityOld',	       // BEFORE: "getRepairCargo" "getFuelCargo" "getAmmoCargo"
			'_serviceEntityNew'		// AFTER: "getRepairCargo" "getFuelCargo" "getAmmoCargo"
		false						// return TRUE to block state change?


Operating System
Windows 10 x64
Additional Information

The closest we can get to detection at the moment is when there is a corresponding action in the action menu, or monitoring the vehicle state.

I imagine this acting like an Analog event, where it fires repeatedly as the vehicles state changes (services dont apply 100% instantly)

relevant commands:

Event Timeline

MDCCLXXVI created this task.Sep 9 2022, 9:11 AM
MDCCLXXVI renamed this task from Feature to Vehicle Service EH.
MDCCLXXVI updated the task description. (Show Details)
MDCCLXXVI edited Additional Information. (Show Details)Sep 9 2022, 9:14 AM
MDCCLXXVI edited Additional Information. (Show Details)
MDCCLXXVI updated the task description. (Show Details)Sep 9 2022, 9:16 AM
BIS_fnc_KK added a comment.EditedDec 23 2022, 11:51 PM

When you approach rearm vehicle in a tank that needs rearming for example you have automatic rearming engaged, at the same time you have a manual option for rearming. What is the manual option all about? @MDCCLXXVI

BIS_fnc_KK changed the task status from New to Need More Info.Dec 23 2022, 11:51 PM
BIS_fnc_KK added a comment.EditedDec 31 2022, 6:28 PM

rev 150153 (slightly different)

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Dec 31 2022, 6:28 PM
BIS_fnc_KK changed the task status from Need More Info to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.