Hi, I'm trying to figure out how to do a full character portrait (what I mean is display a unit, from top to bottom, zoomed out, and on a dialog). The character selection screen of sotis is my best example.
Have no experience with models or actors, so I'm little confused.
Basically I have a selection screen. I want to display the model to a player when they select the hero. All of the heroes are saved in a record array as unit types.
So how can I retrieve the correct model from the record array, and display to the player?
just to be clear you are still using create portrait. I couldn't find any function that could find the model of a particular unit type so you are going to have to store it in a variable. The type of the variable should be Game Link and then from another drop down choose model. Then you will just have to recall the variable when you create the portrait.
Note: the models will be HUGE when you use them in a portrait, so use the set scale actor message, .15 is good for a probe just to give you some reference. I think 100 is towards the screen when you use set facing too.
This has actually helped me a ton so thanks. However I am having some trouble setting the scale. The only function I see that resembles what you're talking about is this:
Actor - Send actor message "SetScale" to main actor of unit No Unit
however since I'm using a unit type, it doesn't really give me an option. Is there another function I should be using?
i forgot one thing under the model in the Data Editor, you have to go to Flags and check Always use Portrait Model or it wont show for people on low graphics settings.
Regarding the archon, try messing the with scale more i think distortion for the model of the archon is alligning with the camera (if that makes any sense)
here's another stupid question, how do you set the portraits to only be displayed to the trigger player? I don't see an option for that in the function.
Hi, I'm trying to figure out how to do a full character portrait (what I mean is display a unit, from top to bottom, zoomed out, and on a dialog). The character selection screen of sotis is my best example.
Can I do this without going to full screen?
yup but I think u need to use models for that and not portraits
@Metatr0n: Go
just use the model of the unit you want to use, and use send actor message setscale and set facing
Have no experience with models or actors, so I'm little confused.
Basically I have a selection screen. I want to display the model to a player when they select the hero. All of the heroes are saved in a record array as unit types.
So how can I retrieve the correct model from the record array, and display to the player?
@Metatr0n: Go
just to be clear you are still using create portrait. I couldn't find any function that could find the model of a particular unit type so you are going to have to store it in a variable. The type of the variable should be Game Link and then from another drop down choose model. Then you will just have to recall the variable when you create the portrait.
Note: the models will be HUGE when you use them in a portrait, so use the set scale actor message, .15 is good for a probe just to give you some reference. I think 100 is towards the screen when you use set facing too.
This has actually helped me a ton so thanks. However I am having some trouble setting the scale. The only function I see that resembles what you're talking about is this:
Actor - Send actor message "SetScale" to main actor of unit No Unit
however since I'm using a unit type, it doesn't really give me an option. Is there another function I should be using?
Think I figured it out actually, it was
Actor - Send actor message "SetScale 0.150000" to all actors in actor scope (Actor scope for (Last created portrait))
portraits are models.
this method worked fine for all the models I tried, except for the archon (it's totally distorted).
@Metatr0n: Go
i forgot one thing under the model in the Data Editor, you have to go to Flags and check Always use Portrait Model or it wont show for people on low graphics settings.
Regarding the archon, try messing the with scale more i think distortion for the model of the archon is alligning with the camera (if that makes any sense)
@Usernameisntworkingright: Go
here's another stupid question, how do you set the portraits to only be displayed to the trigger player? I don't see an option for that in the function.
actually might of figured it out, have to use the show portrait, hide the original, and then force it visible.