[Include] y_vehicledata - Page 3
#1

Awesome
Reply
#2

Really useful. You have my gratitude!
Though I still don't quite understand what VIM is used for.

EDIT:
I made something like this:
Code:
stock VehName(vehicle)
{
	new VIM:vim = Vehicle_GetVIM(vehicle);
	strunpack(name, VIM_Name(vim));
	return name;
}
Is VIM the right way to use it or should I use Vehicle_Name or Model_Name? Which is better?
Reply
#3

VIM is basically an optimisation. If you call multiple data functions for one vehicle, convert it to VIM first and use that. The other versions call "clamp" or "GetVehicleModel" internally, so would involve multiple identical calls instead of just one as in the example you posted.
Reply
#4

Nice
Reply
#5

I've finally added this to the YSI.tl repository, and updated it with some minor improvements - mostly cosmetic code changes, but one small optimisation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)