This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

How to make only one camera mode in map?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Locked
User avatar
Katrtlen
Fighter
Fighter
Posts: 20
Joined: Fri Jun 24, 2016 12:27 pm
SFD Account: Gayfish
Started SFD: Few months after release
Gender:

How to make only one camera mode in map?

Post by Katrtlen » Fri Jun 24, 2016 12:30 pm

As the subject says, i don't know how to make a map with locked camera mode...
...
Can anyone help?
0 x
Green buttons are good

Armadyl5
Superfighter
Superfighter
Posts: 119
Joined: Sun Mar 20, 2016 9:50 am
Started SFD: 1.2.1
Gender:
Age: 27

Post by Armadyl5 » Fri Jun 24, 2016 1:08 pm

type this script to allow the dynamic camera Only at the start .

public void OnStartup(){
Game.SetAllowedCameraModes(CameraMode.Dynamic);
Game.SetCurrentCameraMode(CameraMode.Dynamic);
}


type this script to allow the Static camera Only at the start .

public void OnStartup(){
Game.SetAllowedCameraModes(CameraMode.Static);
Game.SetCurrentCameraMode(CameraMode.Static);
}
1 x
Never Surrender !

Always Fight For Your Rights , and Don't Let Your Friends Down .

Locked