can you get this to work?
as you can see, it goes with the trap bricks, and makes a ringing sound when activated or on a timer, can you get it to work plz?
datablock AudioProfile(bellSound)
{
filename = "./Sound/bellring.wav";
description = AudioClose3d;
preload = true;
};
function serverCmdringBell(%client)
{
%client.player.playAudio(0, bellSound);
}
////////TRAP BRICK: Ring\\\\\\\\
datablock ItemData(TrapRing)
{
category = "Item"; // Mission editor category
equipment = true;
//its already a member of item namespace so dont break it
//className = "Item"; // For inventory system
// Basic Item Properties
shapeFile = "./shapes/blank.dts";
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;
//gui stuff
uiName = "Trap Brick: Ring";
iconName = "";
doColorShift = true;
colorShiftColor = "0.000 0.200 0.640 1.000";
// Dynamic properties defined by the scripts
image = "";
canDrop = false;
filename = "./Sound/bellring.wav";
description = AudioClose3d;
preload = true;
};
AddDamageType("FireDirect", '<bitmap:add-ons/ci/generic> %1', '%2 <bitmap:add-ons/ci/generic> %1',1,1);
datablock ProjectileData(fireProjectile : arrowprojectile)
{
muzzleVelocity = 0;
lifetime = 1;
directDamage = 0.0;
directDamageType = $DamageType::FireDirect;
projectileShapeName = "./shapes/blank.dts";
radiusDamage = 0;
damageRadius = 0;
radiusDamageType = $DamageType::FireDirect;
explosion = color28paintexplosion;
particleEmitter = adminwandemitterB;
filename = "./Sound/bellring.wav";
description = AudioClose3d;
preload = true;
};
%client.player.playAudio(0, bellSound);
};
the sound comes with the boxing ring someone made