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

Worldprobe::getShapeTestResultEx

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

behaves exactly the same way as GET_SHAPE_TEST_RESULT except it has one extra parameter (_materialHash).

Quick disassembly seems to indicate that the unknown is a hash. EDIT: Seems to be the hash of the hit material or surface type.

found a materialFX.dat list of them but not sure if it has to do with this native yet.

Syntax

<syntaxhighlight lang="javascript">mp.game.worldprobe.getShapeTestResultEx(rayHandle, hit, endCoords, surfaceNormal, _materialHash, entityHit);</syntaxhighlight>

Required Arguments

  • rayHandle: int
  • hit: BOOL
  • endCoords: Vector3
  • surfaceNormal: Vector3
  • _materialHash: Hash
  • entityHit: Entity handle or object

Return value

  • object: hit, endCoords, surfaceNormal, _materialHash, entityHit

Example

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

See also

Шаблон:Worldprobe s function c