• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

NEED HELP!!! VERY SIMPLE!!!

Status
Not open for further replies.

DarthTyranus

D

DarthTyranus

I need help. Very simple. I have a map. I want to make it so that a unit attacks when the player press a button, peferably "left mouse click" or "space bar". I have the camera set to thrid person. Is there any way to set it to first person? Also, if it is in first person, is there a way to make a crosshairs for a person to aim by?

Then again, maybe it is not so simple.
 
Ok the attacking on using the left mouse button is easy, as long as you don't want your player to attack a point/an area. Just make a trigger that contains the following:

Code:
Event: Player Selection Event - Player Selects A Unit - [YOUR PLAYER] Selects A Unit

Condition: Unit Comparision - Triggering Unit Is Not Equal [YOUR PLAYERS UNIT]

Actions: 
.) Unit - Issue Order Targeting A Unit - Order [YOUR PLAYERS UNIT] To [ATTACK, CAST ABILITY, ..] On Triggering Unit
.) Selection - Select Unit For Player - Select [YOUR PLAYERS UNIT] For Triggering Player

As far as I know, it's not possible to detect spacebar events, a "real" first person camera or to display crosshairs..

klovadis
 
Thanks, that really helps. By the way, do you know anyone who does good modeling. I need a model of Count Dooku/Darth Tyranus done. Or prehaps you know a link.
 
Status
Not open for further replies.
Back
Top