SC_GiveItem

Usage

void SC_GiveItem( string &name, int count)


Summary

Gives or takes items from the player.


More Information

- name is the name of the item from base\game\items.ini.
- count is the number of items to give (use minus values to take items away).

Note that items have maximum and minimum limits, no matter how many items you award or take the result will be clipped at these limits.


Example

// take a bullet from the player
SC_GiveItem( "Bullet", -1);

// give the player 10 health
SC_GiveItem( "Hit Point", 10);


Last Revised: 10 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator