scripting:attachcameratoentity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:attachcameratoentity [2022/08/09 14:56] – jerryhopper | scripting:attachcameratoentity [2022/08/09 23:14] (current) – [Example] jerryhopper | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== AttachCameraToEntity ====== | + | ====== AttachCameraToEntity() ====== |
Line 6: | Line 6: | ||
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.1660053405.txt.gz · Last modified: 2022/08/09 14:56 by jerryhopper