• 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.

Selected Unit, Camera Lock.

Status
Not open for further replies.
Level 3
Joined
May 22, 2012
Messages
50
I need a trigger that can make it so when I type -LockCam, it locks the camera onto the trigger unit of my choise, would also like one that turns when he does, and one that dosn't...
ANY help would earn you a +1 Thanks! :D!!!!
 
Level 3
Joined
May 22, 2012
Messages
50
I don't have only one unit :( at first I do, but I will train more.. And might want to disable the Lock.... I want it so I can select a unit, then lock onto the one I selected...
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
If you do what mckill stated, you are done with your problem.
Basically what that trigger does is when you select a unit, a variable of unit is set to that unit.
And another trigger will fire off that will lock your camera to the last selected unit, you selected (mouse-pick / drag-select).
But that will work for only one unit, if multiple of units, how do you want to lock all of them ?
It makes no sense.

mckill, try add an array (edit the post) to the variable (Player number of (Triggering player)), that will become MPI, perhaps his map is multiplayer ?
 
Level 3
Joined
May 22, 2012
Messages
50
Yea, okay I got it working! I created the trigger over and over, and made it an array! It works now, AND only follows the unit, if YOU own it! I plan on releasing this map once I finish it, or get it to a playable state... (Unlike my other maps) Its an evolution map, where you start out as a molecule, and evolve into bigger things, and into different elements! If you want... Thanks for the help guys!
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Teknonick, you don't have to create several triggers.

Add all the players to the event, and MY_UNIT[Player number of (Triggering Player)
 
Status
Not open for further replies.
Top