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
27 | |||||
1550 | |||||
171 | |||||
169 | |||||
38 | |||||
21 | |||||
21 | |||||
8 | |||||
5 | |||||
5 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.830222.789+36
- 2.561204.733+3
- 3.34957.860+14
- 4.916404.694-1
- 5.280162.633+8
- 6.305114.728+1
- 7.721440.621+3
- 8.14758.717+1
- 9.17046.787-1
- 10.1019662.606+4
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1222
Board Info
354 users are online:
354 guests
1 post in the last 24h
7 posts in the last week
36 posts in the last month
7 posts in the last week
36 posts in the last month
Registered members: 48939
Welcome our newest member, Ellmjnhiem
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Ellmjnhiem
Most online: 2043 users on 29 Oct 2023, 01:04 AM