Sir Tobbii wrote:
info_player_start now got a Key called "Cam" with Value "1"
same thing with Camera_view_1
Camera_view_2 got Value 2
and trigger got a key called "Call" with Value "Cam"
Not really that.

but i'll try to explain a similar method i'm thinking about:
- Make a Key "on" with a "0" value on all your cameras.
- Make a Key "call" with a "set_camera1" value on your camera1, a "set_camera2" value on your camera2, etc.
- Create a txt file next to your custom map, and rename it to mycustommapname.script (where mycustommapname is your map's name of course)
- Edit it with notepad and paste this:
Code:
// Set camera 1 on
void set_camera1()
{
if ( $Camera_view_1.getFloatKey ("on") == 0) { // check if the camera1 is not already "on", if not, proceed.
sys.trigger ($Camera_view_1); // trigger your camera1
$Camera_view_1.setKey("on", "1"); // set it "on"
$Camera_view_2.setKey("on", "0"); // set camera2 not "on"
$Camera_view_3.setKey("on", "0"); // set camera3 not "on"
// etc, for all your cameras
}
}
// Set camera 2 on
void set_camera2()
{
if ( $Camera_view_2.getFloatKey ("on") == 0) { // check if the camera2 is not already "on", if not, proceed.
sys.trigger ($Camera_view_2); // trigger your camera2
$Camera_view_2.setKey("on", "1"); // set it "on"
$Camera_view_1.setKey("on", "0"); // set camera1 not "on"
$Camera_view_3.setKey("on", "0"); // set camera3 not "on"
// etc, for all your cameras
}
}
// Set camera 3 on
void set_camera3()
{
if ( $Camera_view_3.getFloatKey ("on") == 0) { // check if the camera3 is not already "on", if not, proceed.
sys.trigger ($Camera_view_3); // trigger your camera3
$Camera_view_3.setKey("on", "1"); // set it "on"
$Camera_view_1.setKey("on", "0"); // set camera1 not "on"
$Camera_view_2.setKey("on", "0"); // set camera2 not "on"
// etc, for all your cameras
}
}
// Main is the script executed when your map start.
void main()
{
}
This should do the job. maybe there are some more complex methods to only write 1 thread for every cameras, but i'm a beginner scripter.
