Difference between revisions of "Entity::setVisible"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
unk was always 0.
+
unk was always false.
 
==Syntax==
 
==Syntax==
 
<syntaxhighlight lang="javascript">entity.setVisible(toggle, unk);</syntaxhighlight>
 
<syntaxhighlight lang="javascript">entity.setVisible(toggle, unk);</syntaxhighlight>
Line 9: Line 9:
 
==Example==
 
==Example==
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
entity.setVisible(toggle, 0);
+
entity.setVisible(toggle, false);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 21:20, 13 February 2020

unk was always false.

Syntax

entity.setVisible(toggle, unk);

Required Arguments

  • toggle: Boolean
  • unk: Boolean

Return value

  • Undefined

Example

entity.setVisible(toggle, false);

See also