CreateAmmo
From NWN Lexicon
Contents |
[edit] CreateAmmo(object, object, int)
Spawns in a ammunition suited for that class as part of the random treasure distribution.
void CreateAmmo( object oTarget, object oAdventurer, int nModifier = 0 );
[edit] Parameters
oTarget
Object to create the item on.
oAdventurer
a Player object
nModifier
Amount of Ammo to create (Default: 0)
[edit] Description
Creates a random ammount of ammunition appropriate to the player class.
[edit] Remarks
Found in nw_o2_coninclude.nss
This can be used to create the item in any object with an inventory.
[edit] Requirements
#include " nw_o2_coninclude "
[edit] Version
1.61
[edit] See Also
author: Michael Nork, editor: Lilac Soul