CreateOwnedProjectile

From RAGE Multiplayer Wiki

Creates a projectile travelling to the target position where the source is the player passed.


C# Syntax

void NAPI.Explosion.CreateOwnedProjectile(Client owner, WeaponHash weaponHash, Vector3 start, Vector3 target, int damage, float speed = -1, uint dimension NAPI..GlobalDimension);

Parameters

  • owner: parameter input should be in Client type
  • weaponHash: parameter input should be in WeaponHash type
  • start: parameter input should be in Vector3 type
  • target: parameter input should be in Vector3 type
  • damage: optional parameter, input should be in int type
  • speed: optional parameter, input should be in float type
  • dimension: optional parameter, input should be in uint type


Example

// Code here...