vader_21vb
Oct 31 2002, 21:41
I'm very new in codeing cpp files for object and have a simple (maybe stupide Q):
I have a Working Door on a building, and like to add a sound for Open/Closeing the door.
Have anyone seen this done?
I allso plan for a DoorAlarm sound triggering on OpenDoor Only!
My first try:
class OpenDoors1
{
displayName="Open Big MF Door";
position="osa_dvere1";
radius=5.5;
sound[]={"\myaddon\sound\DoorOpen.wav",0.000500,1};
condition="this animationPhase ""Dvere1"" < 0.5";
statement="this animate [""Dvere1"", 1]";
};
I have a Working Door on a building, and like to add a sound for Open/Closeing the door.
Have anyone seen this done?
I allso plan for a DoorAlarm sound triggering on OpenDoor Only!
My first try:
class OpenDoors1
{
displayName="Open Big MF Door";
position="osa_dvere1";
radius=5.5;
sound[]={"\myaddon\sound\DoorOpen.wav",0.000500,1};
condition="this animationPhase ""Dvere1"" < 0.5";
statement="this animate [""Dvere1"", 1]";
};