[REP++] Objects Material
#6

The weapon icons are made using SetObjectMaterial (or dynamic object material).

For example, the following code could created the rocket icon on an appropriate object:

PHP код:
SetObjectMaterial(objectidmaterialindex359rocketlarocketlaicon0x0
A grenade:

PHP код:
SetObjectMaterial(objectidmaterialindex342grenadegrenadeicon0x0
The material index used is often 0 for basic objects like a small wall etc.

Sorry I don't know the easiest way to find all of the weapon textures but there's a start.
Reply


Messages In This Thread
[REP++] Objects Material - by KessMan - 10.01.2017, 14:41
Re: [REP++] Objects Material - by SoLetsGO - 10.01.2017, 14:43
Re: [REP++] Objects Material - by KessMan - 10.01.2017, 15:08
Re: [REP++] Objects Material - by Lordzy - 10.01.2017, 15:13
Re: [REP++] Objects Material - by KessMan - 10.01.2017, 16:44
Re: [REP++] Objects Material - by Nate4 - 11.01.2017, 10:18
Re: [REP++] Objects Material - by DrVenomous - 11.01.2017, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)