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

Cam::createCamWithParams

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

camName is always set to 'DEFAULT_SCRIPTED_CAMERA' in Rockstar's scripts.
------------
Camera names found in the b617d scripts:
'DEFAULT_ANIMATED_CAMERA'
'DEFAULT_SCRIPTED_CAMERA'
'DEFAULT_SCRIPTED_FLY_CAMERA'
'DEFAULT_SPLINE_CAMERA'
------------
Side Note: It seems p8 is basically to represent what would be the bool p1 within CREATE_CAM native. As well as the p9 since it's always 2 in scripts seems to represent what would be the last param within SET_CAM_ROT native which normally would be 2.

Syntax

<syntaxhighlight lang="javascript">mp.game.cam.createCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight>

Required Arguments

  • camName: String
  • posX: float
  • posY: float
  • posZ: float
  • rotX: float
  • rotY: float
  • rotZ: float
  • fov: float
  • p8: Boolean
  • p9: int

Return value

  • Cam

Example

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

See also

Шаблон:Cam s function c