- Joined
- May 20, 2015
- Messages
- 7
I'm trying to recreate the functionality of the sentry from TF2, and upgrading is fine and dandy, but getting the level 3 to use its bullets and rockets is apparently impossible without some trigger/scripting. Someone suggested creating a dummy unit that will spawn on the building and attack with rockets when the sentry is in combat, and restrict the sentry to just its bullets. I've followed some basic tutorials with triggers, but I'm not completely used to it yet, so please forgive me for any naivety I have on the subject.
So if I was going to break down what I needed
- Check if building is in combat
- Spawn dummy unit to act as secondary attack, which I think I can do with
- Despawn dummy unit when outside of combat
Thanks for any help anyone can provide.
Edit: Solved by Uncle
So if I was going to break down what I needed
- Check if building is in combat
- Spawn dummy unit to act as secondary attack, which I think I can do with
Code:
Unit - Create 1 Sentry (Level 3) |cffffff00[Dummy]|r for (Matching player) at (Position of (Triggering unit)) facing Default building facing degrees
Thanks for any help anyone can provide.
Edit: Solved by Uncle
Last edited: