Variables:
Distance - variable of type 'real'
Temp_Point - variable of type 'point'
Dummy - variable of type 'unit'
CAMERA - camera made in 'camera palette' in WE
DUMMY_UNIT - type of unit
HERO - this funny guy from Your Paint drawing
Hi,
My idea:
Code:Variables: Distance - variable of type 'real' Temp_Point - variable of type 'point' DUMMY_UNIT - type of unit HERO - this funny guy from Your Paint drawing
Trigger:
- Events
- Map Initialization
- Conditions
- Actions
- Set Distance = 100
- Set Temp_Point = ((Position of HERO) offset by Distance towards (Facing of (HERO)) degrees)
- Unit - Create 1 DUMMY_UNIT for Player(Red) at Temp_Point facing default orientation degrees
- Custom script: call RemoveLocation (udg_Temp_Point)
- Camera - Lock camera target for Player(Red) to (DUMMY_UNIT), offset by (0.00, 0.00) using default rotation
Trigger:
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set Temp_Point = ((Position of HERO) offset by Distance towards (Facing of (HERO)) degrees)
- Unit - Move (DUMMY_UNIT) instantly to Temp_Point
- Custom script: call RemoveLocation (udg_Temp_Point)
Made from scratch (for You :*).
You just need to adjust 'Distance' variable to model of your 'HERO'.
It should work fine IMO.
Thanks for wasting ~20 minutes of my life!You can do this without needing a dummy unit. I have a camera that does this exact thing in one of my maps. I'm not at home at the moment or I would post it. If you'd like, I can post it later on when I get home.