micovery / ArmA3_Wasteland.Altis

A3Wasteland is a harsh survival sandbox mission for Arma 3 where two teams and independent players fight for survival. This is a collaboration between GoT, TPG, KoS, 404Games, and others.
GNU Affero General Public License v3.0
3 stars 14 forks source link

Vehicle ID #74

Closed LouDnl closed 9 years ago

LouDnl commented 9 years ago

On extDB when using info the vehicle ID is not showing/not working.

micovery commented 9 years ago

Vehicle IDs are only assigned on saved/restored vehicles, so you won't see an ID on a vehicle has not not been saved.

There is some code already that fetches the vehicle ID for display. See: https://github.com/micovery/ArmA3_Wasteland.Altis/blob/910b13dd4a5d7e1e3992bdcbb6a36ea130d7d455/addons/vactions/va_functions.sqf#L171.

The only issue I could think is that the data type for the ID in extDB is not a string. Can you verify what the data type for vehicle IDs is in extDB?

LouDnl commented 9 years ago

How would I find that out? using cursortarget getVariable "A3W_vehicleID"; on a vehicle returns the ID number and nothing more. No "" or anything.

micovery commented 9 years ago

Sounds like it's a number then. You can try doing:

player groupChat format["%1", typeName (cursortarget getVariable "A3W_vehicleID")];
LouDnl commented 9 years ago

It says SCALAR.

micovery commented 9 years ago

Fixed by 3b371e3268d4a8f3f11c414ac0e93c3716d1f72d