Content deleted Content added
No edit summary |
mNo edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Object |
{{Object |
||
|title1 = {{PAGENAME}} |
|||
|image1 = [[File:LifeSensor.png|thumb]] |
|||
|type = {{#invoke:GetPartInfo|getField|Type}} |
|||
|uses = Find nearby players |
|||
|recipe={{#invoke:GetPartInfo|getField|Recipe}} |
|||
|raw_recipe={{#invoke:GetPartInfo|getField|Raw recipe}} |
|||
|configuration={{#invoke:GetPartInfo|getField|Configuration}} |
|||
|malleability={{#invoke:GetPartInfo|getField|Malleability}} |
|||
|default_size={{#invoke:GetPartInfo|getField|DefaultSize}} |
|||
|durability={{#invoke:GetPartInfo|getField|Durability}} |
|||
|default_colour={{#invoke:GetPartInfo|getField|DefaultColor}} |
|||
|flammable={{#invoke:GetPartInfo|getField|Flammable}} |
|||
}} |
}} |
||
<!-- Some information --> |
<!-- Some information --> |
||
The LifeSensor is a part used in programming. It detects life within 2000 studs. Lifesensors are found in all aliens as a way to sense players. In order to use, you must use the LifeSensor:GetReading() function. It will return a dictionary of all the nearby players and their locations, given in Vector3.<b> |
The LifeSensor is a part used in programming. It detects life within 2000 studs. Lifesensors are found in all aliens as a way to sense players. In order to use, you must use the LifeSensor:GetReading() function. It will return a dictionary of all the nearby players and their locations, given in Vector3. It can also return [[Stan]] as a player.<b> |
||
=== |
===the script below is an example of a turret that uses a lifesensor.=== |
||
<syntaxhighlight lang="lua" line="1"> |
<syntaxhighlight lang="lua" line="1"> |
||
local LifeSensor = GetPartFromPort(1, "LifeSensor") --gets the lifesensor instance |
local LifeSensor = GetPartFromPort(1, "LifeSensor") --gets the lifesensor instance |
||
Line 37: | Line 42: | ||
[[Category:Parts]] |
[[Category:Parts]] |
||
==Gallery== |
|||
[[File:RobloxScreenShot20230720 163444335.png|thumb|left|Players, including Stan appearing on Player Radar which uses a lifesensor]] |