DeleteWorldProp

From RAGE Multiplayer Wiki
Revision as of 14:19, 27 November 2019 by Avoid (talk | contribs) (→‎Example)

Globally deletes a world (object) prop at the given position.

Syntax

void NAPI.World.DeleteWorldProp(uint/int modelHash, Vector3 position, float radius);

Required Arguments

  • modelHash: parameter input should be in int or uint type
  • position: parameter input should be in Vector3 type
  • radius: parameter input should be in float type

Example

C# Syntax

Parameters

  • modelHash: parameter input should be in int or uint type
  • position: parameter input should be in Vector3 type
  • radius: parameter input should be in float type

Example

NAPI.World.DeleteWorldProp(modelHash, new Vector3(posX, posY, posZ), float);