Definition
ActivateImportedCamera(string importedCameraFullName, float endTime[optional])
Description
Imported cameras are cameras that are imported to Vanda engine through a 3D software in COLLADA format. You can view and copy the names of the imported cameras of the current VScene through the tools > Imported Camera menu. You can also access the imported camera names from the Script Utility section of the script editor ( Tools > Script Editor > Tools > Script Utility).
These cameras are not enabled by default. This function allows you to activate the imported camera.
These cameras are not enabled by default. This function allows you to activate the imported camera.
Parameters
importedCameraFullName
Specifies the full name of the imported camera as seen in the tools > Imported Camera menu.
endTime
By default, ActivateImportedCamera function enables the imported camera indefinitely. This parameter allows you to activate the imported camera for endTime. After endTime, the third-person or first-person physics camera is activated. This parameter is optional and must be equal to or greater than 0.0.
Example 1
function Init() ActivateImportedCamera("1_VandaEngine-Pack1_balcony-camera", 5.0) end function Update() end
In this case, the ActivateImportedCamera function activates the imported camera “1_VandaEngine-Pack1_balcony-camera” – if it exists – for 5.0 seconds. After 5.0 seconds, the first person or third person physics camera will be activated.
Example 2
function Init() ActivateImportedCamera("1_VandaEngine-Pack1_balcony-camera") end function Update() end
In this case, the ActivateImportedCamera function activates the imported camera “1_VandaEngine-Pack1_balcony-camera” – if it exists – indefinitely.
ActivateImportedCamera