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

Ped::createNmMessage

Материал из RAGE MP Wiki Archive
Версия от 21:29, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

MulleDK19: Creates a new NaturalMotion message.

startImmediately: If set to true, the character will perform the message the moment it receives it by GIVE_PED_NM_MESSAGE. If false, the Ped will get the message but won't perform it yet. While it's a boolean value, if negative, the message will not be initialized.
messageId: The ID of the NaturalMotion message.

If a message already exists, this function does nothing. A message exists until the point it has been successfully dispatched by GIVE_PED_NM_MESSAGE.

Syntax

<syntaxhighlight lang="javascript">mp.game.ped.createNmMessage(startImmediately, messageId);</syntaxhighlight>

Required Arguments

  • startImmediately: Boolean
  • messageId: int

Return value

  • Undefined

Example

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

See also