Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » sound after vehicle purchase
sound after vehicle purchase [message #460454] Mon, 05 December 2011 06:30 Go to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

im trying this:

Quote:

FDSMessage(StrFormat("Purchase: %ls - %s",Get_Wide_Player_Name(obj),Translate_Preset(obj).c_str()),"_PURCHASE");

int Team = Get_Team(Get_Player_ID(obj));
if (Team == 0)
{
if (!_stricmp(Get_Translated_Preset_Name(obj),"Nod Buggy")) Create_2D_WAV_Sound_Player(obj,"mxxdsgn_dsgn0050i1evag_snd.wav");
}
else if (Team == 1)
{
if (!_stricmp(Get_Translated_Preset_Name(obj),"Humm-Vee")) Create_2D_WAV_Sound_Player(obj,"mxxdsgn_dsgn0050i1evag_snd.wav");

}
}


but it does not running

someone has a idea?


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Mon, 05 December 2011 06:35]

Report message to a moderator

Re: sound after vehicle purchase [message #460457 is a reply to message #460454] Mon, 05 December 2011 07:47 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3813
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Get_Translated_Preset_Name(obj),"Nod Buggy"))
Your checking if the player is named Nod Buggy/Humm-Vee (Judging by the use of obj in the rest of this code anyways); which will never be true unless you rename the soldier so the sound will never play


Re: sound after vehicle purchase [message #460545 is a reply to message #460454] Tue, 06 December 2011 08:50 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

mh,

sorry, but i dont know what u mean....


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: sound after vehicle purchase [message #460546 is a reply to message #460454] Tue, 06 December 2011 09:30 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
The "obj" variable refers to the player's soldier object, not his vehicle.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Previous Topic: Gameplay pending delay
Next Topic: Emitters and Infantry
Goto Forum:
  


Current Time: Thu Dec 26 19:11:04 MST 2024

Total time taken to generate the page: 0.00649 seconds