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?
Setting individual player objectives and sounds
30 Apr 2020, 09:45 AM
#1
Posts: 6
1 May 2020, 07:48 AM
#2
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.
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.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
464 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.830222.789+36
- 2.561204.733+3
- 3.34957.860+14
- 4.1095612.641+19
- 5.916404.694-1
- 6.280162.633+8
- 7.305114.728+1
- 8.721440.621+3
- 9.14758.717+1
- 10.17046.787-1
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1222
Board Info
342 users are online:
342 guests
1 post in the last 24h
16 posts in the last week
38 posts in the last month
16 posts in the last week
38 posts in the last month
Registered members: 48933
Welcome our newest member, Qplcdidds04
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Qplcdidds04
Most online: 2043 users on 29 Oct 2023, 01:04 AM