About
News
Tutorials
Tools
Tools Guide
Scripting
Forums
Contact
setAmmoBar
setAmmoBar <menu image file name>
setAmmoBar allows you to pick the image used in the ammo bar slot. This image is located in the menu.rfa in the ingame folder.
Example:
ObjectTemplate.
create
HandFireArms
Sg44
ObjectTemplate.
itemIndex
3
ObjectTemplate.
networkableInfo
HandFireArmsInfo
ObjectTemplate.
projectileTemplate
sg44Projectile
ObjectTemplate.
projectilePosition
0/0/0
ObjectTemplate.
magSize
30
ObjectTemplate.
numOfMag
5
ObjectTemplate.
magType
0
ObjectTemplate.
reloadtime
3.8
ObjectTemplate.
roundOfFire
9
objectTemplate.
aiTemplate
SG44AI
ObjectTemplate.
hasDynamicShadow
1
ObjectTemplate.
zoomFov
0.5
ObjectTemplate.
altFireOnce
1
ObjectTemplate.
soldierZoomFov
0.6
ObjectTemplate.
soldierZoomPosition
-0.04/-0.01/0
ObjectTemplate.
soldierCameraPosition
-0.02/-0.04/0.03
ObjectTemplate.
addRootSpeed
0
ObjectTemplate.
ammoType
1
ObjectTemplate.
GUIIndex
3
ObjectTemplate.
setHudAmmoType
ATAmmoBar
ObjectTemplate.
setAmmoBar
"Ingame/Magbar_Sg44_empty_32x64.tga"
ObjectTemplate.
setAmmoBarFill
"Ingame/Magbar_Sg44_full_32x64.tga"
ObjectTemplate.
setAmmoBarSize
64
ObjectTemplate.
setAmmoBarPosX
3
ObjectTemplate.
setAmmoBarPosY
-11
ObjectTemplate.
setAmmoBarTextPosX
8
ObjectTemplate.
setAmmoBarTextPosY
4
Valid object types
HandFireArms