I saw some guy who wanted like a magic potion. So i made a script.
Might be broken, hazzah
datablock ItemData(HealingPItem)
{
category = "Weapon"; // Mission editor category
className = "Weapon"; // For inventory system
// Basic Item Properties
shapeFile = "./HealingP.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;
//gui stuff
uiName = "Healing Potion";
iconName = "./HealingP";
doColorShift = false;
// Dynamic properties defined by the scripts
image = HealingPImage;
canDrop = true;
};
datablock ShapeBaseImageData(HealingPImage)
{
// Basic Item properties
shapeFile = "./HealingPotion.dts";
emap = true;
// Specify mount point & offset for 3rd person, and eye offset
// for first person rendering.
mountPoint = 0;
offset = "0.09 -0.07 -0.2";
eyeOffset = 0; //"0.7 1.2 -0.5";
rotation = eulerToMatrix( "0 0 0" );
className = "WeaponImage";
item = HealingPItem;
//raise your arm up or not
armReady = true;
doColorShift = false;
// Initial start up state
stateName[0] = "Ready";
stateTransitionOnTriggerDown[0] = "Fire";
stateAllowImageChange[0] = true;
stateName[1] = "Fire";
stateTransitionOnTimeout[1] = "Ready";
stateAllowImageChange[1] = true;
stateScript[1] = "onFire";
stateTimeoutValue[1] = 1;
};