Getting tire damage states
#6

Ah okay, this is simple. I've done it. Well not with tyres but with panels.

wait are you sure that code pops back and not front tyres? from logic it seems 1010 would pop back front and 0101 would pop back tyres

pawn Код:
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
if(tires & 0101)//or in this weird case.. if(tires & 1010)
{
//back tyres are poped
}
//or it might be done by index which it seems like on the wiki
if(tires == 5) //or in this weird case.. if(tires == 10)
{
//back tyres are poped
}
also note you can't do tires & 3 with a bitwise operator, 3 is no a bit

I'm sorry for not using American English for tyres / tires.
Reply


Messages In This Thread
Getting tire damage states - by MP2 - 11.07.2012, 08:46
Re: Getting tire damage states - by Vince - 11.07.2012, 09:08
Re: Getting tire damage states - by MP2 - 11.07.2012, 09:25
Re: Getting tire damage states - by clarencecuzz - 11.07.2012, 09:30
Re: Getting tire damage states - by MP2 - 11.07.2012, 09:31
Re: Getting tire damage states - by Kar - 11.07.2012, 09:40
Re: Getting tire damage states - by clarencecuzz - 11.07.2012, 09:43
Re: Getting tire damage states - by MP2 - 11.07.2012, 09:44
Re: Getting tire damage states - by Vince - 11.07.2012, 09:47
Re: Getting tire damage states - by MP2 - 11.07.2012, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)