MTA:Eir/functions/engineGetStreamingFocusEntity

From Multi Theft Auto: Wiki
Revision as of 19:29, 10 December 2013 by The GTA (talk | contribs) (Created page with "__NOTOC__ This function returns the entity that the world is streaming around. By default, this is the local player. ==Syntax== <syntaxhighlight lang="lua"> element engineGetStreamingFocusEn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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() );