scripting:attachcameratoentity
This is an old revision of the document!
AttachCameraToEntity
Attaches a camera to a ingame entity
AttachCameraToEntity(vehicle, boneIndex, positionOffset, anglesOffset);
Example
//CAMERA ATTACH TO VEHICLE GenericEntity vehicle = GenericEntity.Cast(GetWorld().FindEntityByName("BTR1")); int boneIndex = vehicle.GetBoneIndex("v_root"); vector positionOffset = Vector(-2.5, 1.5, 6.0); vector anglesOffset = Vector(0, 180, 0); AttachCameraToEntity(vehicle, boneIndex, positionOffset, anglesOffset);
scripting/attachcameratoentity.1660053535.txt.gz · Last modified: 2022/08/09 14:58 by jerryhopper