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

A point in front of a unit?

Status
Not open for further replies.
Level 9
Joined
May 10, 2009
Messages
542
I am having trouble unravelling the mystery of how to make a first person camera for multiplayer without making the unit size go to 0%. So, I have a camera dummy and such, but even when I tried using - real values it still puts the dummy behind the unit, when moving it. Can anyone tell me how to do this without vJASS or excessive JASS?
 
  • Trigger Camera
  • Events
    • Time - Every 0.03 second of game-time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Set Point1 = (Position of (Your unit[Player Number of Player(IntegerA)])
        • Set Point2 = ((Point1) offset by 40.00 (?) towards ((Facing of (your unit[Player Number of Player(IntegerA)]))
        • Camera - Pan Camera for (Player(IntegerA)) at Point2
        • Custom script: call RemoveLocation (udg_Point1)
        • Custom script: call RemoveLocation (udg_Point2)
 
Level 9
Joined
May 10, 2009
Messages
542
Testing - you will be granted many thanks and acclaim, if this works. But wait, I don't use it like that, take an example from Slaydon's "Movement and Camera" spell which includes TPC and FPC. However, the different way I did it, can easily have something like that. Testing, then + rep if works.
 
Status
Not open for further replies.
Top