scripting:attachcameratoentity
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
scripting:attachcameratoentity [2022/08/09 14:56] – created jerryhopper | scripting:attachcameratoentity [2022/08/09 23:14] (current) – [Example] jerryhopper | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== AttachCameraToEntity() ====== | ||
- | ====== AttachCameraToEntity ====== | ||
+ | Attaches a camera to a ingame entity | ||
+ | ---- | ||
AttachCameraToEntity(vehicle, | AttachCameraToEntity(vehicle, | ||
+ | |||
+ | |||
+ | |||
+ | ===== Common usage ===== | ||
+ | |||
+ | CAMERA ATTACH TO VEHICLE | ||
+ | |||
+ | < | ||
+ | GenericEntity vehicle = GenericEntity.Cast(GetWorld().FindEntityByName(" | ||
+ | int boneIndex = vehicle.GetBoneIndex(" | ||
+ | vector positionOffset = Vector(-2.5, | ||
+ | vector anglesOffset = Vector(0, 180, 0); | ||
+ | AttachCameraToEntity(vehicle, | ||
+ | </ |
scripting/attachcameratoentity.1660053381.txt.gz · Last modified: 2022/08/09 14:56 by jerryhopper