Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_Inventory::SetAmmoCount Method
Syntax
C++
int SetAmmoCount(IFunctionHandler* pH, const char* ammoName, int count);
Parameters 
Description 
const char* ammoName 
Ammunition name. 
int count 
Ammunition amount. 

!

Inventory.SetAmmoCount( ammoName, count )

!  

!  

! Sets the amount of the specified ammunition. 

 

Copyright (c) 2012. All rights reserved.