Skip to content

AttachCameraToPlayerObject, AttachObjectToObject and AttachPlayerObjectToVehicle #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Disinterpreter opened this issue Jun 16, 2020 · 0 comments
Labels
compatibility Compatibility with latest version of SAMP function SAMP functions

Comments

@Disinterpreter
Copy link
Member

Disinterpreter commented Jun 16, 2020

Function name

  • AttachCameraToPlayerObject(playerid, playerobjectid)
  • AttachObjectToObject(objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1)
  • AttachPlayerObjectToVehicle(playerid, objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ)
  • AttachObjectToVehicle

Describe the function

  • AttachCameraToPlayerObject - Attaches a player's camera to a player-object. The player is able to move their camera while it is attached to an object. Can be used with MovePlayerObject and AttachPlayerObjectToVehicle.
  • AttachObjectToObject - You can use this function to attach objects to other objects. The objects will folow the main object.
  • AttachPlayerObjectToVehicle - Attach a player object to a vehicle.
  • AttachObjectToVehicle

Equivalent in MTA
https://wiki.multitheftauto.com/wiki/AttachElements

Additional information
https://team.sa-mp.com/wiki/AttachCameraToPlayerObject.html
https://team.sa-mp.com/wiki/AttachObjectToObject.html
https://team.sa-mp.com/wiki/AttachPlayerObjectToVehicle.html
https://team.sa-mp.com/wiki/AttachObjectToVehicle.html

@Disinterpreter Disinterpreter added the function SAMP functions label Jun 16, 2020
@Disinterpreter Disinterpreter changed the title AttachCameraToPlayerObject and AttachObjectToObject AttachCameraToPlayerObject, AttachObjectToObject and AttachPlayerObjectToVehicle Jun 16, 2020
@Disinterpreter Disinterpreter added the compatibility Compatibility with latest version of SAMP label Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Compatibility with latest version of SAMP function SAMP functions
Projects
None yet
Development

No branches or pull requests

1 participant