Login

russian armor

Setting individual player objectives and sounds

30 Apr 2020, 09:45 AM
#1
avatar of host_leaver

Posts: 6

Hello modding community,
I'm trying to add sounds and objectives to my win condition, but I can't figure out how to add them to specific players.
I think the VP condition scar plays different sounds for different players, because I see it checks the value of a currentVictoryBalance variable and then tells the winners they're winning and the losers that they're losing, at the same time, but I can't figure out how and I don't see where it iterates through players.

Can anyone help?
1 May 2020, 07:48 AM
#2
avatar of host_leaver

Posts: 6

Update:
I think I figured out the objectives part. I can change it for different players by getting the local player. The objective functions grab the local player if no player is provided.

I'm completely lost for the sound part, though.
I've tried using Actor_PlaySpeech() and this works, but it plays for all players and sound only plays if I initialize the following variable: g_MissionSpeechPath = "botb/gameplay"
Is there any way to add speech files from outside the folder provided in that variable or to add another folder?

Other than Actor_PlaySpeech(), I've tried using Sound_Play2D() like I've seen used in aabattle_vptickerwin-annihilate_functions.scar, but I never got any sound to play, even if the code was executed.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

323 users are online: 2 members and 321 guests
capiqua, Crecer13
7 posts in the last 24h
44 posts in the last week
149 posts in the last month
Registered members: 44934
Welcome our newest member, Jarec279
Most online: 2043 users on 29 Oct 2023, 01:04 AM