a_objects.inc
Description:
Include a_objects.inc allows you to add, delete, modify, move objects on your server.
This inclusion comes in the standard windows serer build |
List of functions:
- CreateObject: Creates an object at specified coordinates in the game world.
- AttachObjectToVehicle: Attach an object to a vehicle.
- AttachObjectToObject: Attach objects to other objects.
- AttachObjectToPlayer: Attach an object to a player.
- SetObjectPos: Change the position of an object.
- GetObjectPos: Get the position of an object.
- SetObjectRot: Set the rotation of an object on the three axes (X, Y and Z).
- GetObjectRot: Get the objects current rotation.
- GetObjectModel: Get the model ID of an object.
- SetObjectNoCameraCol: Disable collisions between players' cameras and the specified object.
- IsValidObject: Checks if an object with the ID provided exists.
- DestroyObject: Destroys (removes) an object that was created using CreateObject.
- MoveObject: Move an object to a new position with a set speed.
- StopObject: Stop a moving object after MoveObject has been used.
- IsObjectMoving: Checks if the given objectid is moving.
- EditObject: Allows a player to edit an object (position and rotation) using their mouse on a GUI (Graphical User Interface).
- EditPlayerObject: Allows players to edit a player-object (position and rotation) with a GUI and their mouse.
- SelectObject: Display the cursor and allow the player to select an object.
- CancelEdit: Cancel object edition mode for a player.
- CreatePlayerObject: Creates an object which will be visible to only one player.
- AttachPlayerObjectToVehicle: Attach a player object to a vehicle.
- SetPlayerObjectPos: Sets the position of a player-object to the specified coordinates.
- GetPlayerObjectPos: Get the position of a player object (CreatePlayerObject).
- SetPlayerObjectRot: Set the rotation of an object on the X, Y and Z axis.
- GetPlayerObjectRot: Get the object's current rotation.
- GetPlayerObjectModel: Retrieve the model ID of a player-object.
- SetPlayerObjectNoCameraCol: Toggles a player object camera collision.
- IsValidPlayerObject: Checks if the given object ID is valid for the given player.
- DestroyPlayerObject: Destroy a player-object created using CreatePlayerObject.
- MovePlayerObject: Move a player object with a set speed.
- StopPlayerObject: Stop a moving player-object after MovePlayerObject has been used.
- IsPlayerObjectMoving: Checks if the given player objectid is moving.
- AttachPlayerObjectToPlayer: The same as AttachObjectToPlayer but for objects which were created for player.
- SetObjectMaterial: Replace the texture of an object with the texture from another model in the game.
- SetPlayerObjectMaterial: Replace the texture of a player-object with the texture from another model in the game.
- SetObjectMaterialText: Replace the texture of an object with text.
- SetPlayerObjectMaterialText: Replace the texture of a player object with text.
- SetObjectsDefaultCameraCol: Allows camera collisions with newly created objects to be disabled by default.
List of callbacks: