• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

PLANE MOVE

Status
Not open for further replies.
Level 20
Joined
May 26, 2006
Messages
653
Any Idea how to make air units move like loctus swarm?
To dont let them stop , cos its a bit stupid when Mesherschmit ME or F22 Raptor stops and do nothing.
(How to edit loctus swarm ability or triggers)
PLZ HELP

THX a lot ivan if it works i will give you credit in my ww2 map
 
Level 3
Joined
Jan 1, 2005
Messages
44
make it slide

Event: Unit Issued order with no target
Conditions: Issued order = stop
Triggering unit = unit of type "plane"
Actions: wait (0.03) seconds
Move (triggering unit) instantly to position with polar offset (12) from (position of (triggering unit) facing((facing of triggering unit)+1) degrees

thats it... if unit stops, he will make circles, well u also can make a randomizer so if random value from 1 to 2 equals to 1 then move him facing ((facing of triggering unit)+1) if it equals to 2 then move him facing(facing position of (triggering unit)-1)



Atacking trigger:
Event: Unit issued order targeting unit
Conditions: Issued order equals to atack
Triggering unit = unit of type(plane)
Actions: If, then, else
If disstance between points((Position of (triggering unit)) and (position of(Target Unit of issued order))) Are less then (1000)
Then Actions: order Triggering unit to move position with polar offset (1000) from Position of(Target Unit of issued order) facing angle between points(Position of (Target unit of issued order)) and (Position of(Triggering unit))
Wait until condition(disstance between points((Position of (triggering unit)) and (position of(Target Unit of issued order))) are more or equal to (1000)
Order Triggering unit to Atack (Target Point of issued order)
Else: Order Triggering unit to "move" to position of(target unit of issued order)
Wait until condition((facing angle of triggering unit) equals to angle between (position of triggering unit) and (Position of (target unit of issued order))
wait 0.5 seconds
Order Triggering unit to "move" to position of(target unit of issued order)
Play Triggering unit "atacking animation"
Set (health) of (Target unit of issued order) to (current value) - (damage of(triggeting unit))
wait 1 seconds
Order Triggering unit to "move" to position of(target unit of issued order)
***here create animation of his bullet which flys into target***
Play Triggering unit "atacking animation"
Set (health) of (Target unit of issued order) to (current value) - (damage of(triggeting unit))
wait 1 seconds
Order Triggering unit to "move" to position of(target unit of issued order) ***depends on reload time***
Play Triggering unit "atacking animation"
***here create animation of his bullet which flys into target***
Set (health) of (Target unit of issued order) to (current value) - (damage of(triggeting unit))
wait 1 seconds
Order Triggering unit to "move" to position of(target unit of issued order)
Play Triggering unit "atacking animation"
***here create animation of his bullet which flys into target***
Set (health) of (Target unit of issued order) to (current value) - (damage of(triggeting unit))
wait 1 seconds
***etc as many times as u want for each atack***
order (Triggering unit) to "move" to point with polar offset 1000 of (Triggeting unit) facing (facing of triggeting unit
Order (Triggering unit) to atack (Target Unit of issued order)





well i didn't try it but if u fix some leaks it might actually work :) so your unit will atack without stopping
 
Status
Not open for further replies.
Top