WeaponScript.Icon: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
(Created Page.)
 
No edit summary
 
Line 6: Line 6:


For example, to use the icon "mg_small.vtf" which is located in the directory structure "vehicles/gui/weapons/", the '''Icon''' key would be set to contain the following value: ''vehicles/gui/weapons/mg_small''.
For example, to use the icon "mg_small.vtf" which is located in the directory structure "vehicles/gui/weapons/", the '''Icon''' key would be set to contain the following value: ''vehicles/gui/weapons/mg_small''.
{{Note|1-slot weapons use an icon size (WxH) of 32x32, while 2 and 3-slot weapons use a 128x32 size.}}

Latest revision as of 09:26, 2 June 2010

Empires Scripting Documentation
Scripting Overview | Vehicle Script Overview | Vehicle Handling Script Overview | Weapon Script Overview | Armor Script Overview | Building Script Overview | Infantry Script Overview | Hint Messages | Loading Screen Script Overview | Tutorials



Vehicle Weapon Script Characteristics List
General Characteristics | Sound Characteristics | Weapon Characteristics



General Characteristics
Name | Description | Icon | HUD Name | HUD Icon | Size | Type | Cost | Team | Research



Icon

This string determines the icon that is drawn in the vehicle customization menu. Its path is relative to the "/materials/vgui/" directory.

For example, to use the icon "mg_small.vtf" which is located in the directory structure "vehicles/gui/weapons/", the Icon key would be set to contain the following value: vehicles/gui/weapons/mg_small.


Note
1-slot weapons use an icon size (WxH) of 32x32, while 2 and 3-slot weapons use a 128x32 size.