Ok Ive been working on this sine about 3 hours and cant seem to work out something to be an equivalent of:
Actor - Send message "PortraitCustomize (Portrait Model)" to actor (Actor)
from regular trigger-editing...
The reason I absolutely need it in script is that I need my (portrait model) to be a variable and same for my (actor).
Or perhaps this simply isn't the right action? I would realy like to know how to do this otherwise.
(Im looking to change the portrait for the actor of my unit in-game using a variable for the portrait model)
It is a gamelink variable and I don't understand where I'm supposed to make a conversion to a string...
And thats not realy the answer to my question since the thing is I don't have any idea of what to write: which was the reason of my question (I'm talking about the whole line)
You have to input a string in that same format if you want to send it with any portrait you want. In this case the (Portrait Model) is a string identifier like and ID for that portrait's model in the data editor.
The best way to avoid such thing is to use a function for that actor message (function that return actor message) and you input a portrait model as a game-link variable into it
When you pull up "send actor message" theres a bunch of preset commands I believe , you want to switch the tab over to function. From the functions you can use variables in your messages.... if you use the presets I believe you can only use custom strings.... as in it wont allow you to select variables and such.
Ok Ive been working on this sine about 3 hours and cant seem to work out something to be an equivalent of:
Actor - Send message "PortraitCustomize (Portrait Model)" to actor (Actor)
from regular trigger-editing...
The reason I absolutely need it in script is that I need my (portrait model) to be a variable and same for my (actor).
Or perhaps this simply isn't the right action? I would realy like to know how to do this otherwise.
(Im looking to change the portrait for the actor of my unit in-game using a variable for the portrait model)
You need to convert the portrait from a game link to a string.
@OverPoweredZeratul: Go
Use a - game link variable. It's value is basically the object's id string and you can pass it into the actor message. Be sure to concatenate string.
It is a gamelink variable and I don't understand where I'm supposed to make a conversion to a string...
And thats not realy the answer to my question since the thing is I don't have any idea of what to write: which was the reason of my question (I'm talking about the whole line)
@OverPoweredZeratul: Go
The send actor message accept a syntaxed string
"PortraitCustomize (Portrait Model)"
You have to input a string in that same format if you want to send it with any portrait you want. In this case the (Portrait Model) is a string identifier like and ID for that portrait's model in the data editor.
The best way to avoid such thing is to use a function for that actor message (function that return actor message) and you input a portrait model as a game-link variable into it
When you pull up "send actor message" theres a bunch of preset commands I believe , you want to switch the tab over to function. From the functions you can use variables in your messages.... if you use the presets I believe you can only use custom strings.... as in it wont allow you to select variables and such.