Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Playing sound effect when...
Playing sound effect when... [message #141652] Thu, 03 March 2005 12:56 Go to next message
Naamloos is currently offline  Naamloos
Messages: 771
Registered: April 2004
Location: The Netherlands
Karma: 0
Colonel
What script works best when i wan't a sound effect to play when someone buys a character? I'd like only the team members to hear the effect.

I tried the one chem troopers and flamers use but LE crashes once i add it to other character (M00_Play_Sound_Object_Bone_DAY).

Also for the sound effect it's self, how do i set it up for team only?
Playing sound effect when... [message #141810] Fri, 04 March 2005 11:52 Go to previous messageGo to next message
Slash0x is currently offline  Slash0x
Messages: 455
Registered: January 2004
Location: California
Karma: 0
Commander
Use the variety of JW's scripts. i'm sure there's something in there to make that work.

L3T'5 4LL THR0W 3GG5 4T D4 N00B! Smile
Playing sound effect when... [message #141850] Fri, 04 March 2005 16:53 Go to previous messageGo to next message
Naamloos is currently offline  Naamloos
Messages: 771
Registered: April 2004
Location: The Netherlands
Karma: 0
Colonel
Uh... I never know how to activate them since many scripts have their own ways.

The name of a script that allows me to do this would get me somewhere, ill figure out how it works myself i think... :oops:
Playing sound effect when... [message #142006] Sat, 05 March 2005 11:21 Go to previous message
vloktboky is currently offline  vloktboky
Messages: 290
Registered: February 2003
Location: Kentucky, USA
Karma: 0
Recruit

Well, when someone "buys a character", the character they bought's preset is created. Therefore, having a script attached to that player's preset that playes a sound on Create would, in theory, work. Although if the preset is created elsewhere, such as on an AI spawn or something similar in fashion, it would activate there as well. I am not up-to-date on any new creations, so I am unaware if a callback exists for purchases. If one does, place the code there.

If you can find a script that plays a 3d sound on creation, attach it to the purchased character's preset in LE, and it should work.
Previous Topic: SSAOW 1.3.3
Next Topic: Multiplayer Reinforcements
Goto Forum:
  


Current Time: Tue Jun 04 03:56:32 MST 2024

Total time taken to generate the page: 0.01123 seconds