type.
- Inherit:
ShapeBaseData
Stores properties for an individual Item type.
Items represent an object in the world, usually one that the player will interact with. One example is a health kit on the group that is automatically picked up when the player comes into contact with it.
ItemData provides the common properties for a set of Items. These properties include a DTS or DAE model used to render the Item in the world, its physical properties for when the Item interacts with the world (such as being tossed by the player), and any lights that emit from the Item.
Example:
datablock ItemData(HealthKitSmall)
{
category ="Health";
className = "HealthPatch";
shapeFile = "art/shapes/items/kit/healthkit.dts";
gravityMod = "1.0";
mass = 2;
friction = 1;
elasticity = 0.3;
density = 2;
drag = 0.5;
maxVelocity = "10.0";
emap = true;
sticky = false;
dynamicType = "0"
; lightOnlyStatic = false;
lightType = "NoLight";
lightColor = "1.0 1.0 1.0 1.0";
lightTime = 1000;
lightRadius = 10.0;
simpleServerCollision = true; // Dynamic properties used by the scripts
pickupName = "a small health kit";
repairAmount = 50;
};