I had an idea for a map(a gun game) but i would have to get the following to work which i have no clue yet on how to make it, you know how you get the cursor splat thingy when you use a target ability, i want it to always show up on the cursor so that the unit like gets forced to use the ability as if it is a gun and you just have to click to fire and not hotkey it. Kinda like a first person shooter but when you fire it will use a target ability.
If i manage to do this is there a way that i could also get the cursor splat while the unit is moving, i mean it should be a problem cause the cursor splat and moving are both abilities and cant be used at the same time right? (this is for when i make it with WASD movement, not sure if i will yet)
i hope someone understands what i want :p
example: i found a map called chuchu train and if your a defender you can click an ability(select the weapon) than you just have to rightbutton mouseclick to shoot a missile at target point? any idea how they did that?
Also nice to know would be if this kinda stuff is possible with Data or do i have to use the trigger editor?
@Rice87: Go
This wouldnt be possible via data only (There is no data command to "follow mouse" as far as Im aware).
For a top-down type game, youd probably have to use a trigger timer and a "cursor" unit. Every X seconds, check the position of player's mouse and move cursor unit to position of mouse. Then if mouse-left-click, order "actual unit" to fire at "cursor unit". Your weapon should only be able to target the cursor unit, and you would probably need a projectile weapon with a periodic persistent search (i.e. every 0.1s check in a radius of 0.01 for enemies any apply X damage (dont forget to use a marker so damage isnt repeatedly applied).
thnx for the reply´s, i was actually hoping to avoid triggered mouse events because it is prolly going to lag, but i guess there is no other way, so i will try this the way you suggested troughout the trigger editor.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey,
I had an idea for a map(a gun game) but i would have to get the following to work which i have no clue yet on how to make it, you know how you get the cursor splat thingy when you use a target ability, i want it to always show up on the cursor so that the unit like gets forced to use the ability as if it is a gun and you just have to click to fire and not hotkey it. Kinda like a first person shooter but when you fire it will use a target ability.
If i manage to do this is there a way that i could also get the cursor splat while the unit is moving, i mean it should be a problem cause the cursor splat and moving are both abilities and cant be used at the same time right? (this is for when i make it with WASD movement, not sure if i will yet)
i hope someone understands what i want :p
example: i found a map called chuchu train and if your a defender you can click an ability(select the weapon) than you just have to rightbutton mouseclick to shoot a missile at target point? any idea how they did that?
Also nice to know would be if this kinda stuff is possible with Data or do i have to use the trigger editor?
thnx for the time.
i think the only way would be to use the "button pressed / mouse clicked" triggers. Not sure how good thet works in a multiplayer map.
@Rice87: Go This wouldnt be possible via data only (There is no data command to "follow mouse" as far as Im aware).
For a top-down type game, youd probably have to use a trigger timer and a "cursor" unit. Every X seconds, check the position of player's mouse and move cursor unit to position of mouse. Then if mouse-left-click, order "actual unit" to fire at "cursor unit". Your weapon should only be able to target the cursor unit, and you would probably need a projectile weapon with a periodic persistent search (i.e. every 0.1s check in a radius of 0.01 for enemies any apply X damage (dont forget to use a marker so damage isnt repeatedly applied).
@ckSynergy: Go
thnx for the reply´s, i was actually hoping to avoid triggered mouse events because it is prolly going to lag, but i guess there is no other way, so i will try this the way you suggested troughout the trigger editor.