getSearchLightStartPosition | Multi Theft Auto: Wiki Skip to content

getSearchLightStartPosition

Client-side
Server-side
Shared

Pair: setSearchLightStartPosition

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function gets the start position of a searchlight element.

OOP Syntax Help! I don't understand this!

  • Method: searchlight:getStartPosition(...)
  • Variable: .startPosition

Syntax

float,​ float,​ float getSearchLightStartPosition ( searchlight theSearchLight )
Required Arguments
  • theSearchLight: the searchlight to get the position where the searchlight's light cone starts.

Returns

  • float: x
  • float: y
  • float: z

If the specified searchlight element is valid, this function will return three float , which are the three coordinates of searchlight's start position. If not, it will return false plus an error message.

Code Examples

shared
-- TODO