Page 1 of 1
Char portraits.
Posted: Thu Jul 30, 2015 9:18 pm
by trancelistic
Hey. I stumbeld on 1 last issue:
The: party:getChampion(1):setPortrait("mod_assets/portraits/cecil.tga")
Works in the editor ( works for all champs)
However in the game itself it still loads the default portraits.
What could I have done to cause this?
I really do not get.
Help is surely appriciated<3
Re: Char portraits.
Posted: Thu Jul 30, 2015 10:51 pm
by minmay
Are you calling it immediately on dungeon start? If so you may need to wait a frame first, e.g. put it in a function in a script_entity then put a hidden pressure plate under the party's starting position, and connect that plate to the function.
Re: Char portraits.
Posted: Wed Aug 12, 2015 8:39 pm
by trancelistic
Oh wow. Could it be this simple?
I go try it right away minmay.
Thanks for your great help so far. I appriciate it<3
Re: Char portraits.
Posted: Wed Aug 12, 2015 8:41 pm
by trancelistic
minmay wrote:Are you calling it immediately on dungeon start? If so you may need to wait a frame first, e.g. put it in a function in a script_entity then put a hidden pressure plate under the party's starting position, and connect that plate to the function.
I just rememberd. i though of this. I've placed a temp button that goes to a function script to set the portraits and some status.
That also didn't worked:(
note: The other things in the script do work. Only the portrait not.