How can I trigger this?

J3LADE

New Member
Reaction score
7
I want the camera height to change to like 600 when my unit enters a region how would i do it and also lock the camera to the unit?

I have tried re-ordering my trigger but it still doesn't work...
 

Ozzdog

Hopeless Toby Driver fan boy
Reaction score
65
Code:
ts - A unit enters [u]region[/u]

Conditions - Put this if you want : Entering Unit is equal to a [b]unit of your choice[/b]

Actions - Apply Camera Object 001 (your camera set to 600 view distance) over 1 second

- Lock camera to entering unit using the units default facing angle

WE not open, but it looks very similar to that.
 

Quauhtli

I have the right to remain silent.
Reaction score
62
i needed this in my game too
this is my trigger, note that u should use triggering unit instead of entering unit!

Code:
Camera
Events
Unit - Generic unit enters <region>
Conditions
~
Actions
Camera - Set (Owner of (Triggering Unit))'s camera Height Offset to 600.00 over 1.00 seconds 
Camera - Lock camera target for (Owner of (Triggering Unit)) to (Triggering unit), offset by (600.00, 0.00) using Default rotation
somethign like that
 

N2o)

Retired.
Reaction score
51
Locking Doesn't work unless it's periodic so you do:
Code:
TurnonCam
Events
Unit - Generic unit enters <region>
Conditions
~
Actions
Set Boolean[Player number of (Triggering Player)] equal to True
Trigger - Turn on (Camera)
Code:
Events
Time - Every 0.1 seconds of game-time
Conditions
Actions
For Integer A from 1-12 do:
If Boolean[Integer A] equal to true
then
Camera - Lock camera target for (Owner of (Triggering Unit)) to   (Triggering unit), offset by (600.00, 0.00) using Default rotation
Camera - Set (Owner of (Triggering Unit))'s camera Height Offset to 600.00 over 1.00 seconds
else
looks kinda messy since i wrote it freehand
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top