Worldprobe::getShapeTestResultEx: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
behaves exactly the same way as GET_SHAPE_TEST_RESULT except it has one extra parameter (_materialHash).<br><br>Quick disassembly seems to indicate that the unknown is a hash. EDIT: Seems to be the hash of the hit material or surface type.<br><br>found a materialFX.dat list of them but not sure if it has to do with this native yet.
behaves exactly the same way as GET_SHAPE_TEST_RESULT except it has one extra parameter (_materialHash).<br><br>Quick disassembly seems to indicate that the unknown is a hash. EDIT: Seems to be the hash of the hit material or surface type.<br><br>found a materialFX.dat list of them but not sure if it has to do with this native yet.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">worldprobe.getShapeTestResultEx(rayHandle, hit, endCoords, surfaceNormal, _materialHash, entityHit);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.worldprobe.getShapeTestResultEx(rayHandle, hit, endCoords, surfaceNormal, _materialHash, entityHit);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''rayHandle:''' int
*'''rayHandle:''' int
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Worldprobe_function_c}}
{{Worldprobe_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:35, 6 May 2017

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

mp.game.worldprobe.getShapeTestResultEx(rayHandle, hit, endCoords, surfaceNormal, _materialHash, entityHit);

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

// todo

See also

Template:Worldprobe s function c