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

Entity::getScript

Материал из RAGE MP Wiki Archive
Версия от 18:03, 1 мая 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

All ambient entities in-world seem to have the same value for the second argument (Any *script), depending on when the scripthook was activated/re-activated. I've seen numbers from ~5 to almost 70 when the value was translated with to_string. The function return value seems to always be 0.

Syntax

<syntaxhighlight lang="javascript">entity.getScript(script);</syntaxhighlight>

Required Arguments

  • script: ScrHandle

Return value

  • ScrHandle

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also