Entity::doesExist: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(5 intermediate revisions by one other user not shown)
Line 4: Line 4:
=== Required Arguments ===
=== Required Arguments ===
===Return value===
===Return value===
*'''Boolean'''
*'''Number'''
 
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
  obj = mp.objects.new('prop_cardbordbox_02a', localPlayer.position,{});
  obj.doesExist();
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 18:01, 1 May 2024

Checks if the Entity exists

Syntax

entity.doesExist();

Required Arguments

Return value

  • Number

Example

   obj = mp.objects.new('prop_cardbordbox_02a', localPlayer.position,{});
   obj.doesExist();

See also