how to embed sounds so that when you click on blintz is lowe
Posted: Sat Feb 07, 2015 3:10 pm
How to embed sounds so that when you click on blintz is lowered?
---------------------------Configuration File-------------------------------------------------------------------
---------------------------Configuration File-------------------------------------------------------------------
Code: Select all
///////////////////////////////////////////////////////////////////////////////
//
// Pandemic Studios
//
// UNIT
CreateObjectType("Blintz", "Unit")
{
GameObj()
{
ThinkInterval(1);
IdleTask("Tasks::UnitIdle");
Properties()
{
Add("Filter::Army");
Add("Filter::Mechanical");
Add("Filter::Unit");
Add("Client::FacilityBar");
Add("Client::NoGroupSelect");
}
}
MapObj()
{
GodFile("army_blintz.god");
PhysicsModel("Vehicle");
TractionType("vehicle");
ReticleType("Vehicle");
ArmourClass("vehicle");
HitPoints(500);
TypeDisplay()
{
Image()
{
Image("if_game_portraits-Blintz.tga", 0, 168, 42, 42);
Mode("Centre");
}
}
GenericFX()
{
Add("MapObj::Health::Low", "damage.bulldozer");
Add("MapObj::Death", "death.vehicle-large");
Add("Restore::Target::Process", "restore-small");
Add("MapObj::AddToMap2", "restore-small-puff");
}
}
UnitObj()
{
TopSpeed(45);
TurnSpeed(540);
SeeingRange(57);
MoveIntoRange(80);
Constructor("army.building.hq1");
ConstructionTime(20);
CreateSource("resource.blob.vehicle1");
CommandCost(1);
ResourceCost()
{
Add("Plastic", 250);
Add("Electricity", 0);
}
Prereqs()
{
Add("army.building.hq1");
}
}
}