Sooo I have a hero that transforms into a werewolf at night, and transforms back to human at sunrise. Pretty basic concept.
At first I did it using a behavior, complete with model swapping and everything. Which is working, but as it's more of a band-aid solution, I'm trying to make a Transform ability that would be used automatically.
Can anyone help me on this ? I've never done any Transform ability previously.
i think u can just create morph ability with autocast, do behavior that enables ur morph ability with validator that disables behavior if u dont have have an upgrade, and when u need to automorph ur unit u just set up upgrade by triggers, u can create 1 ability that morps to Wolf and other to Human, and use 2 different upgrades or 1 upgrade with 2 levels to set up validator. Or mb u dont even need any behavior, just don't make command Button for ability, and make auto-cast validator that checks for this upgrade setted by triggers, it will be even eiser.
Or just do it with triggers, create morph ability and then night starts make While loop with condition that checks if unit is morphed and action that order him to start morphing.
Update : I managed to somehow do what I wanted to do, the unit automatically morphs into another at dusk, then morphs back to its original form at dawn.
But there's one little actor problem : if the unit is walking while the ability triggers, it does not stay in "run" animation but goes in "idle". Probably a bunch of actor events to add.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Sooo I have a hero that transforms into a werewolf at night, and transforms back to human at sunrise. Pretty basic concept.
At first I did it using a behavior, complete with model swapping and everything. Which is working, but as it's more of a band-aid solution, I'm trying to make a Transform ability that would be used automatically.
Can anyone help me on this ? I've never done any Transform ability previously.
@ZeShmoutt: Go
I'd advise you to check out the viking or hellion and just copy that. It's a pretty straightforward type of ability.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
What you mean by automatically? You need to cast it on midnight or in response to some other event.
Shameless bump. Anyone?
i think u can just create morph ability with autocast, do behavior that enables ur morph ability with validator that disables behavior if u dont have have an upgrade, and when u need to automorph ur unit u just set up upgrade by triggers, u can create 1 ability that morps to Wolf and other to Human, and use 2 different upgrades or 1 upgrade with 2 levels to set up validator. Or mb u dont even need any behavior, just don't make command Button for ability, and make auto-cast validator that checks for this upgrade setted by triggers, it will be even eiser.
Or just do it with triggers, create morph ability and then night starts make While loop with condition that checks if unit is morphed and action that order him to start morphing.
Update : I managed to somehow do what I wanted to do, the unit automatically morphs into another at dusk, then morphs back to its original form at dawn.
But there's one little actor problem : if the unit is walking while the ability triggers, it does not stay in "run" animation but goes in "idle". Probably a bunch of actor events to add.