|
Re: Veh names at hud [message #397144 is a reply to message #397138] |
Wed, 05 August 2009 18:41 |
dr3w2
Messages: 485 Registered: September 2006 Location: Ottawa,Canada
Karma: 0
|
Commander |
|
|
GameObject *obj = Get_Vehicle_Return((GameObject *)(*TheStar)->obj);
char veh[250];
sprintf(veh,"%s",Get_Translated_Preset_Name(obj));
That should work. Haven't tested it.
It should output the vehicle name OR the actual preset name like gdi_minigunner into the char array veh. I'm sure there's probebly a better or more specific way to do it ...
n00bstories Server Administrator
[Updated on: Wed, 05 August 2009 18:42] Report message to a moderator
|
|
|
|
|
|