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

CreateCircleColShape

Материал из RAGE MP Wiki Archive
Версия от 13:08, 27 ноября 2019; imported>Xabi (Xabi moved page NAPI.ColShape.CreateCircleColShape to CreateCircleColShape)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Creates a circle shaped colshape object.

Syntax

<syntaxhighlight lang="C#" >ColShape NAPI.ColShape.CreateCircleColShape(float x, float y, float range, uint dimension = NAPI.GlobalDimension);</syntaxhighlight>

Required Arguments

  • x: the x-position where the colshape should be placed in the world.
  • y: the x-position where the colshape should be placed in the world.
  • range: the range at which this colshape will trigger.

Optional Arguments

  • dimension: dimension of the colshape. Input type should be in uint.

This function returns a ColShape object.

Usage example(s)

<syntaxhighlight lang="C#" > NAPI.ColShape.CreateCircleColShape(x, y, range) </syntaxhighlight>