I know this can be done but how? I know how to change a unit type's name though triggers but can't figure out how to do models like they do in Cortex RP.
As far as I know, it is impossible to change a unit's model through triggers. If you look at the Data Editor, Supply Depot and Supply Depot (Lowered) are separate units. Same thing with Brood Lords and Corruptors, Viking ground and Viking air. I have never played Cortex, but they probably do it by creating a new unit at the point of the old unit.
Sorry, I know how to change a unit's model. What I meant was through strings.
I.E. (or is it E.J.?) Typing "@modelswap Marine" while selecting a zergling in-game to change a zergling's model to a marine's. As seen in Cortex RP.
For the DnD-Type map I'm currently making, most the trigger-work is done except for those pesky GameLink types, for which it's very difficult to implement chat message events for. I feel like there's a very easy way that I'm just not figuring out.
This assumes a local variable called Unit or unit, which holds the unit to swap the model and a Chat Message event, which uses a command like "-modelswap " or whatever, the important part would be the space between the command and the model (so the model will be the 2nd word for the string).
I know this can be done but how? I know how to change a unit type's name though triggers but can't figure out how to do models like they do in Cortex RP.
any help is appreciated :)
As far as I know, it is impossible to change a unit's model through triggers. If you look at the Data Editor, Supply Depot and Supply Depot (Lowered) are separate units. Same thing with Brood Lords and Corruptors, Viking ground and Viking air. I have never played Cortex, but they probably do it by creating a new unit at the point of the old unit.
@Aramiri: Go
something along the lines of, "Send Actor Message to Actor for Unit: Model Swap (Model, Variation 1)"
@PirateArcade | I make games | Ask me things on Discord
Sorry, I know how to change a unit's model. What I meant was through strings.
I.E. (or is it E.J.?) Typing "@modelswap Marine" while selecting a zergling in-game to change a zergling's model to a marine's. As seen in Cortex RP.
For the DnD-Type map I'm currently making, most the trigger-work is done except for those pesky GameLink types, for which it's very difficult to implement chat message events for. I feel like there's a very easy way that I'm just not figuring out.
I great example of what I'm hoping for is a simple shortcut like in this post: http://forums.sc2mapster.com/development/triggers/20338-naming-a-unit-through-triggers/#p10
@Aramiri: Go
no need to create a separate thread... it is I.E.
I believe what you're asking for can be done, take a look at http://forums.sc2mapster.com/resources/project-workplace/14010-blizz-dota-hero-selection-interface/ , Progammer's got a similar system for displaying unit models. Hope that points you in the right direction
@PirateArcade | I make games | Ask me things on Discord
If String to Game Link is the problem, just use galaxy script. Example:
Add this as Custom Script to your trigger.
This assumes a local variable called Unit or unit, which holds the unit to swap the model and a Chat Message event, which uses a command like "-modelswap " or whatever, the important part would be the space between the command and the model (so the model will be the 2nd word for the string).
ty so much I'm trying that right now!@Kueken531: Go
but if you want to give me some more info on how to add that script in that would be greate too :)@Kueken531: Go
It won't let me save or test with the custom script in@Kueken531: Go