From searching the topic I thought this was how you did it, but it doesn't work. The camera never changes. Everything else works fine. I tried changing when the camera was set (just after the model was set, or just after the portrait item was created) and tried a variety of camera names.
It works if I use unit model, but I kind of want to use portrait.
Additionally, I can set its lighting to a preset lighting but if I modify it or create my own that lighting wont work. Any idea why?
Display a model on a Dialog. This is easy enough to do with Unit Models, but unit models constantly rotate and you have to make units for each model you want to show. The portrait Dialog item type is often seen as a solution to these problems. Using the trigger I show, the model appears but its really zoomed in to it's foot. This is a common issue when the camera isn't set right. I'm trying to set the camera according to tutorials and posts I've read in the past and it isn't working.
You should send a message to the actor to alter the scale. This is what I do. And it is usually by a lot too; I would try starting with .2 and working from there.
Creating The Animated Hero
Dialog - Create a Portrait for dialog (Last created dialog)
Variable - Set Hero Selection Dialog - Hero Selected[1] = (Last created dialog item)
Dialog - Set (Last created dialog item) size to ((Temp X Size - 20), (Temp Y Size - 20)) for (All players)
Dialog - Move (Last created dialog item) to ((Temp X Position + 10), (Temp Y Position + 10)) relative to Top Left of dialog for (All players)
Dialog - Set (Last created dialog item) Background Visible flag to False for (All players)
Dialog - Set (Last created dialog item) Border Visible flag to False for (All players)
Dialog - Set (Last created dialog item) Model to Hero - War Girl for (All players)
Portrait - Wait for (Get Portrait Id from (Last created dialog item)) to finish loading
Portrait - Set (Get Portrait Id from (Last created dialog item)) Render Type to PortraitRenderTypeLDR
Actor - Send message "SetScale 0.200000 0.100000" to actor (Actor for (Last created dialog item))
From searching the topic I thought this was how you did it, but it doesn't work. The camera never changes. Everything else works fine. I tried changing when the camera was set (just after the model was set, or just after the portrait item was created) and tried a variety of camera names.
It works if I use unit model, but I kind of want to use portrait.
Additionally, I can set its lighting to a preset lighting but if I modify it or create my own that lighting wont work. Any idea why?
Thanks for any help :)
@TheSkunk2: Go
What exactly are you trying to do (in simple terms)?
@Rohime: Go
Display a model on a Dialog. This is easy enough to do with Unit Models, but unit models constantly rotate and you have to make units for each model you want to show. The portrait Dialog item type is often seen as a solution to these problems. Using the trigger I show, the model appears but its really zoomed in to it's foot. This is a common issue when the camera isn't set right. I'm trying to set the camera according to tutorials and posts I've read in the past and it isn't working.
You should send a message to the actor to alter the scale. This is what I do. And it is usually by a lot too; I would try starting with .2 and working from there.
Creating The Animated Hero
Dialog - Create a Portrait for dialog (Last created dialog)
Variable - Set Hero Selection Dialog - Hero Selected[1] = (Last created dialog item)
Dialog - Set (Last created dialog item) size to ((Temp X Size - 20), (Temp Y Size - 20)) for (All players)
Dialog - Move (Last created dialog item) to ((Temp X Position + 10), (Temp Y Position + 10)) relative to Top Left of dialog for (All players)
Dialog - Set (Last created dialog item) Background Visible flag to False for (All players)
Dialog - Set (Last created dialog item) Border Visible flag to False for (All players)
Dialog - Set (Last created dialog item) Model to Hero - War Girl for (All players)
Portrait - Wait for (Get Portrait Id from (Last created dialog item)) to finish loading
Portrait - Set (Get Portrait Id from (Last created dialog item)) Render Type to PortraitRenderTypeLDR
Actor - Send message "SetScale 0.200000 0.100000" to actor (Actor for (Last created dialog item))
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418