Loading save
» Siedler Map Source Forum » Siedler DEdK Script Forum » Loading save
Seiten: 1
Qba331PL
|
#1 09.09.2018 11:29 Beiträge: 102 |
Loading save
Hi!
I've got a problem. I used function that changes player color (not in FMA). But after loading the save, color comes back to blue. How to fix it?
mcb
|
#2 09.09.2018 12:14 Beiträge: 1472 |
This is, because the player colors don't get saved. Instead InitPlayerColorMapping is called again after the game got loaded. So if you want to change a player color, best way to do it is to set a variable and then test inside the InitPlayerColorMapping to set the correct color. Then simply call the InitPlayerColorMapping again, after you changed the variable.
SH
|
#3 09.09.2018 14:05 Beiträge: 127 |
Zitat von Qba331PL:
Hi!
I've got a problem. I used function that changes player color (not in FMA). But after loading the save, color comes back to blue. How to fix it?
Here you can find the code to the function ChangePlayerColor: http://www.siedler-games.de/si...utorials:spielerfarben_aendern
____________________
Sorry for my German
Seiten: 1