Перейти к содержанию

CreateProjectile

Материал из RAGE MP Wiki Archive
Версия от 09:26, 30 ноября 2019; imported>Xabi (Created page with "Creates a projectile travelling to the target position. {{CSharpContainer| {{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}Explosion.CreateProjectile(Wea...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Creates a projectile travelling to the target position.


<syntaxhighlight lang="csharp">void NAPI.Explosion.CreateProjectile(WeaponHash weaponHash, Vector3 start, Vector3 target, int damage, float speed = -1, uint dimension NAPI..GlobalDimension);</syntaxhighlight>

Parameters

  • 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

<syntaxhighlight lang="csharp"> // Code here... </syntaxhighlight>