• 🏆 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!

*help* Click to shoot

Status
Not open for further replies.
Level 2
Joined
Aug 4, 2008
Messages
12
Hi everyone, im making a WASD movement and a click to shoot game and i have already made the WASD but i cant hide out or figure out how to make a click to shoot system, if anyone could link me a guide or tell me it would be much appreciated.

and another thing is i remember the skill "Locus" back in worldeditor to make your unit unclickable, what is it called now?

-thanks
 
Level 9
Joined
May 9, 2009
Messages
536
give your controlling unit an attack that launches a projectile that is removed when it comes in contatct with an enemy. afterwards, create a dummy unit. in your triggers, create a trigger that if the player presses a mouse button(left or right), get the coordinates of the click and create the dummy unit. order the controlled unit to attack the dummy once. it will launch a projectile at the target location.


Example: http://www.sc2mapster.com/maps/top-down-fighters/
 
Status
Not open for further replies.
Top