Need to know for my plants vs. zombies starcraft map. I need to know if i can easily make it so that a specific unit fires downward only so that they don't shot across at other player sides.
First of all: I loved Plants vs. Zombies, I am curious on your ideas :D
Then, how do you plan to setup your missle system?
If you plan to use the default inbuilt system I can't help you, and I think it could get hard since these missles are always hitting the target.
To setup an own system either code it, or use a persistant effect to move the missle with a small period.
I think that there is a field called "periodic offset" which lets you set multiple offsets.
So create 20 offsets (and add 20 periods for the the effect with a small period duration). You will need to test out the values yourself, but I assume that moving 0.4 in x-direction every 0.1 seconds would be fine.
I figured it out thanks to onetwosc. You need to go to the turret of the unit and change the arc for all of the states like turning and what-not. Then you have to go to the actual unit and change it's facing direction to the same direction so that it will actually fire. This will only work if a unit is specifically in it's line of fire though but perfect for a plants vs zombies.
Need to know for my plants vs. zombies starcraft map. I need to know if i can easily make it so that a specific unit fires downward only so that they don't shot across at other player sides.
bump?
First of all: I loved Plants vs. Zombies, I am curious on your ideas :D
Then, how do you plan to setup your missle system? If you plan to use the default inbuilt system I can't help you, and I think it could get hard since these missles are always hitting the target.
To setup an own system either code it, or use a persistant effect to move the missle with a small period. I think that there is a field called "periodic offset" which lets you set multiple offsets. So create 20 offsets (and add 20 periods for the the effect with a small period duration). You will need to test out the values yourself, but I assume that moving 0.4 in x-direction every 0.1 seconds would be fine.
I figured it out thanks to onetwosc. You need to go to the turret of the unit and change the arc for all of the states like turning and what-not. Then you have to go to the actual unit and change it's facing direction to the same direction so that it will actually fire. This will only work if a unit is specifically in it's line of fire though but perfect for a plants vs zombies.
@KillerGymSox: Go
How to ?
make the unit not turnable and have it facing in a specific direction and adjust the angle it can fire at by altering the arc of the weapon.
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
@KillerGymSox: Go
Where's the tutorial ?
http://wiki.sc2mapster.com/galaxy/data/units/
http://wiki.sc2mapster.com/galaxy/data/weapons/
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