MTA:Eir/functions/engineGetStreamingFocusEntity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Renamed template)
 
Line 1: Line 1:
{{*Client_function}}
{{MTA:Eir/Client_function}}
__NOTOC__  
__NOTOC__  
This function returns the entity that the world is streaming around. By default, this is the local player.
This function returns the entity that the world is streaming around. By default, this is the local player.

Latest revision as of 08:07, 28 September 2023

This function returns the entity that the world is streaming around. By default, this is the local player.

Syntax

element engineGetStreamingFocusEntity ()

Returns

Returns the MTA entity that the world is streaming around.

Example

Click to collapse [-]
Client

This snippet centers the camera around the streaming focus entity.

setCameraTarget( entineGetStreamingFocusEntity() );