Lord_Kakashi
The Wabbits are attacking
- Reaction score
- 27
I'm trying to lock all player cameras to a certain viewpoint or camera object so to say, so i was wondering which would be more efficient..
A timed event which applies the camera object each 0,01 seconds.. or locking the camera to a dummy unit which has been placed at the camera objects focus..
Be mindful that i also need to make sure that the camera isn't reset to initial (game camera) viewpoint by scrolling the view up and down or pressing "End" or any other of those camera buttons in-game
So basically.. fixing the camera view to a specific camera object without causing lag.. Is there any other way to do this?
- Edit -
I also need the system to support multiple camera viewpoints at the same time, since each player might not be in the same region, so i've made a code which looks like this.
Variables:
PlayCam: Camera Object Array
CamIndex: Integer Array
So basically i just set each players camera depending on "CamIndex" which will be set when a unit enters a region.. It works, but not 100% as i would like it to, also I'm afraid that this method might cause lag
A timed event which applies the camera object each 0,01 seconds.. or locking the camera to a dummy unit which has been placed at the camera objects focus..
Be mindful that i also need to make sure that the camera isn't reset to initial (game camera) viewpoint by scrolling the view up and down or pressing "End" or any other of those camera buttons in-game
So basically.. fixing the camera view to a specific camera object without causing lag.. Is there any other way to do this?
- Edit -
I also need the system to support multiple camera viewpoints at the same time, since each player might not be in the same region, so i've made a code which looks like this.
Code:
cam cam
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Camera - Apply PlayCam[CamIndex[(Player number of (Player((Integer A))))]] for (Player((Integer A))) over 0.00 seconds
Variables:
PlayCam: Camera Object Array
CamIndex: Integer Array
So basically i just set each players camera depending on "CamIndex" which will be set when a unit enters a region.. It works, but not 100% as i would like it to, also I'm afraid that this method might cause lag