User Tools

Site Tools


scripting:attachcameratoentity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
scripting:attachcameratoentity [2022/08/09 17:00] jerryhopperscripting:attachcameratoentity [2022/08/09 23:14] (current) – [Example] jerryhopper
Line 9: Line 9:
  
  
-===== Example =====+===== Common usage ===== 
 + 
 +CAMERA ATTACH TO VEHICLE
  
 <code> <code>
-//CAMERA ATTACH TO VEHICLE 
 GenericEntity vehicle = GenericEntity.Cast(GetWorld().FindEntityByName("BTR1")); GenericEntity vehicle = GenericEntity.Cast(GetWorld().FindEntityByName("BTR1"));
 int boneIndex = vehicle.GetBoneIndex("v_root"); int boneIndex = vehicle.GetBoneIndex("v_root");
scripting/attachcameratoentity.1660060847.txt.gz · Last modified: 2022/08/09 17:00 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki