So, I've found a couple of tutorials about creating a unit from scratch and I like to think that I've followed them pretty closely but obviously I've done something wrong. I'm trying to create an archer with a ranged attack that actually fires arrows. I've imported a model for the arrow, created two separate actors, unit, launch and damage effects.
And this is what's happening:
The archers are trying to attack the tower, but the arrows aren't launching. Instead, those little orbs are spawning at their feet. None of the archers are actually dealing any damage and I think it's because they have the launch effect rather than the damage effect. The damage effect has been given to the arrow unit.
Please help. I've been trying to get this to work for a while now.
Well, I double checked. I did remember to create the model for the missile, use that model for the missile actor and link that actor to the missile unit. Does anyone have any ideas?
Bit of an update, I've managed to correct a few of the links. It turns out I somehow accidently linked it to the wrong projectile unit. The archers are dealing damage now, but the projectile itself is still not showing up. But neither are the orbs. So I'm going to double check the actors and models next.
If everything set up properly in the editor this can be problem with animation name. Missile actor plays "Stand" animation, check if this is right for your imported model. Also might be issues with texture path. No other clues...
It didn't actually have a proper stand animation. So I reimported the model,
I did manage to get it to work with one of the built in units, specifically the stalker. But for some reason it just refuses to work for my custom unit. So now I think the problem is with the unit itself. Does anyone know what this could be?
Odds are you are spawning an actor without a specified unit else are creating an actor with a Model from the data type of the same name that no longer has a valid link.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
So, I've found a couple of tutorials about creating a unit from scratch and I like to think that I've followed them pretty closely but obviously I've done something wrong. I'm trying to create an archer with a ranged attack that actually fires arrows. I've imported a model for the arrow, created two separate actors, unit, launch and damage effects.
And this is what's happening:
The archers are trying to attack the tower, but the arrows aren't launching. Instead, those little orbs are spawning at their feet. None of the archers are actually dealing any damage and I think it's because they have the launch effect rather than the damage effect. The damage effect has been given to the arrow unit.
Please help. I've been trying to get this to work for a while now.
U didn't mention creating a model basically.
Well, I double checked. I did remember to create the model for the missile, use that model for the missile actor and link that actor to the missile unit. Does anyone have any ideas?
Did you set the target point right?
Bit of an update, I've managed to correct a few of the links. It turns out I somehow accidently linked it to the wrong projectile unit. The archers are dealing damage now, but the projectile itself is still not showing up. But neither are the orbs. So I'm going to double check the actors and models next.
I'm not sure. What is the right target point?
If everything set up properly in the editor this can be problem with animation name. Missile actor plays "Stand" animation, check if this is right for your imported model. Also might be issues with texture path. No other clues...
It didn't actually have a proper stand animation. So I reimported the model,
I did manage to get it to work with one of the built in units, specifically the stalker. But for some reason it just refuses to work for my custom unit. So now I think the problem is with the unit itself. Does anyone know what this could be?
Heya,
If you PM me your map (pref with unnecessary imports and triggers removed), I can tell you what the problem is.
Thanks,
Tya
Odds are you are spawning an actor without a specified unit else are creating an actor with a Model from the data type of the same name that no longer has a valid link.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg