IsElementVisibleTo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Incomplete]]  
{{Server function}}
[[Category:Incomplete]]
{{Needs_Checking|Does the element visibleTo have to be a player?}}  
{{Needs_Checking|Does the element visibleTo have to be a player?}}  


__NOTOC__  
__NOTOC__  
This checks if an element is visible to a player. This does not check if the player can litterally see the element, just that they are aware that it exists. Some so-called [[per-player elements]] are able to be visible only to some players, as such this checks if this is the case for a particular element/player combination.
This checks if an element is visible to a player. This does not check if the player can literally see the element, just that they are aware that it exists. Some so-called [[per-player elements]] are able to be visible only to some players, as such this checks if this is the case for a particular element/player combination.


==Syntax==  
==Syntax==  

Revision as of 14:30, 17 August 2007

Dialog-information.png This article needs checking.

Reason(s): Does the element visibleTo have to be a player?


This checks if an element is visible to a player. This does not check if the player can literally see the element, just that they are aware that it exists. Some so-called per-player elements are able to be visible only to some players, as such this checks if this is the case for a particular element/player combination.

Syntax

bool isElementVisibleTo ( element theElement, player visibleTo )          

Required Arguments

  • theElement: The element you want to check the visibility of
  • visibleTo: The player you want to check against

Returns

Returns true if element is visible to the specified player, false if not or an invalid argument was passed to the function.

Example


See Also