Stormworks: Build and Rescue

Stormworks: Build and Rescue

Không đủ lượt đánh giá
[LUA] Camera controls on screen
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Kích cỡ file
Đã đăng
80.195 KB
17 Thg05, 2019 @ 4:42am
1 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
[LUA] Camera controls on screen

Mô tả
Presentation

This resource allow player to control camera (see list below for functions) from the screen. The player have also the possibility of show/hide the HUD.

- Pitch
- Rotation
- Zoom
- NightVision



Settings

When open with the microcontroller tool, at the beginning of the code you have a few variables for correctly setting the system.

enableNightVision="2" -- For disable nightvision, write a number higther then 1 / For activate : write 1
isGimble="2" -- for disable movement buttons, write a number highter then 1 / For active : write 1
enableResetBtn="2" -- for disable reset button, write a number highter then 1

The block below allow you to sets presets applied when screen initialization. You can also set boudaries for gimbal cameras.

presetPitch={val=0, min=-1, max=1}
presetRot={val=0, min=-1, max=1}
presetZoom={val=0, min=0, max=1}