Endstar LUA API Documentation
Loading...
Searching...
No Matches
Sensor Class Reference

Used to modify the behavior of a sensor component by altering its settings. More...

Public Member Functions

void SetSenseTeam (Context instigator, int sense)
 Set which team this sensor filters for using TeamSense
 
void SetSenseShape (Context instigator, int shape)
 Set the shape of this sensor using SenseShape
 
void SetVerticalSenseExtents (Context instigator, float height)
 Set the vertical extents of this sensor's sense shape SenseShape.
 
void SetHorizontalSenseExtents (Context instigator, float width)
 Set the horizontal extents of this sensor's SenseShape.
 
void SetVerticalSenseAngle (Context instigator, float angle)
 Set the vertical angle of this sensor's SenseShape. Has no effect on some sense shapes.
 
void SetHorizontalSenseAngle (Context instigator, float angle)
 Set the horizontal angle of this sensor's SenseShape. Has no effect on some sense shapes.
 
void SetSenseDistance (Context instigator, float distance)
 Set the sense distance of this sensor's SenseShape.
 
void SetSenseXRay (Context instigator, bool xray)
 Set whether this sensor detects through walls.
 

Detailed Description

Used to modify the behavior of a sensor component by altering its settings.

Member Function Documentation

◆ SetHorizontalSenseAngle()

void SetHorizontalSenseAngle ( Context instigator,
float angle )

Set the horizontal angle of this sensor's SenseShape. Has no effect on some sense shapes.

Parameters
instigatorThe source context triggering this change
angleHorizontal angle

◆ SetHorizontalSenseExtents()

void SetHorizontalSenseExtents ( Context instigator,
float width )

Set the horizontal extents of this sensor's SenseShape.

Parameters
instigatorThe source context triggering this change
widthHorizontal extents

◆ SetSenseDistance()

void SetSenseDistance ( Context instigator,
float distance )

Set the sense distance of this sensor's SenseShape.

Parameters
instigatorThe source context triggering this change
distanceSense distance

◆ SetSenseShape()

void SetSenseShape ( Context instigator,
int shape )

Set the shape of this sensor using SenseShape

Parameters
instigatorThe source context triggering this change
shapeThis sensor's SenseShape

◆ SetSenseTeam()

void SetSenseTeam ( Context instigator,
int sense )

Set which team this sensor filters for using TeamSense

Parameters
instigatorThe source context triggering this change
senseThis sensor's TeamSense

◆ SetSenseXRay()

void SetSenseXRay ( Context instigator,
bool xray )

Set whether this sensor detects through walls.

Parameters
instigatorThe source context triggering this change
xrayTrue if this sensor should detect through walls

◆ SetVerticalSenseAngle()

void SetVerticalSenseAngle ( Context instigator,
float angle )

Set the vertical angle of this sensor's SenseShape. Has no effect on some sense shapes.

Parameters
instigatorThe source context triggering this change
angleVertical angle

◆ SetVerticalSenseExtents()

void SetVerticalSenseExtents ( Context instigator,
float height )

Set the vertical extents of this sensor's sense shape SenseShape.

Parameters
instigatorThe source context triggering this change
heightVertical extents