Is there a way to avoid changing my portrait if my unit for example gets in a vehicle (a tank or else). I want my unit to retain its portrait for the whole game. Is it through triggers or some way in data editor https://mobdro.onl/https://vidmate.onl/ ?
2 things, depending on what your portrait is built.
Trigger Editor :
If your portrait IS NOT the standard unit portrait BUT a hand-made one with triggers, you should not have any issues.
Data Editor :
If your portrait IS the standard unit portrait, your issue comes from the actor of your unit, that is to say the vehicle (a tank or else).
So you have to create a specific unit actor for your Hero / Special unit with that portrait.
Be sure to look for an Actor of type Unit.
Look for the field "Art : CActorUnit_PortraitModel" (Raw name, CTRL+D) and set the expected portrait model.
Be advise that a Unit cannot have 2 Actors of type Unit. So you have to play with Actor Events to destroy and to create the correct Unit Actor when applied.
That is the simple method.
Advanced tips :
Create an Actor of type Event Macro (or Macro) to prevent yourself a long and repetitive hard work.
Do the step 3 above.
Add your Event Macro in all your units that your Hero / Special unit can "get in a vehicle".
Expert tips :
In your Actor, you can create an Event with as event Signal (for example, that always easy for testing) and as action "ModelSwap".
Set in the "Target" field the value "::PortraitGameSelf" (see note below).
To be honest, that needs test and may not work.
NOTE :
They are called "System tags" and reference something by the system. For instance, for portrait you can find "::PortraitGame" (Multiple usage), "::PortraitGameSelf" (To set for the current Unit Actor, individually) and "::PortraitGameUnit" (To set for all instances of this Unit Actor). In general, the name is self-explanatory.
Have a nice day.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there a way to avoid changing my portrait if my unit for example gets in a vehicle (a tank or else). I want my unit to retain its portrait for the whole game. Is it through triggers or some way in data editor https://mobdro.onl/ https://vidmate.onl/ ?
Hello,
2 things, depending on what your portrait is built.
Trigger Editor :
If your portrait IS NOT the standard unit portrait BUT a hand-made one with triggers, you should not have any issues.
Data Editor :
If your portrait IS the standard unit portrait, your issue comes from the actor of your unit, that is to say the vehicle (a tank or else).
So you have to create a specific unit actor for your Hero / Special unit with that portrait.
That is the simple method.
Advanced tips :
Expert tips :
NOTE :
They are called "System tags" and reference something by the system. For instance, for portrait you can find "::PortraitGame" (Multiple usage), "::PortraitGameSelf" (To set for the current Unit Actor, individually) and "::PortraitGameUnit" (To set for all instances of this Unit Actor). In general, the name is self-explanatory.
Have a nice day.