Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_Sensor.h
Go to the documentation of this file.
1 // | _ ____ __ _
2 // | / \ _ _ _ __ __ _/ ___| ___ / _| |_
3 // | / _ \| | | | '__/ _` \___ \ / _ \| |_| __|
4 // | / ___ \ |_| | | | (_| |___) | (_) | _| |_
5 // | /_/ \_\__,_|_| \__,_|____/ \___/|_| \__|
6 // |
7 // | Aurasoft UK 2008 - 2018 http://www.aurasoft.co.uk
8 // |
9 // | Skyline Game Engine Lua API Documentation
10 // |
11 // | This file belongs to Aurasoft UK for the Skyline Game Engine of all versions.
12 // | This file is not for use in any other software that is not owned by Aurasoft UK and cannot be used by any other
13 // | person outside of the Skyline Game Engine development team.
14 // |
15 // | Copyright - Aurasoft UK & Skyline Game Engine 2008 - 2018
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
28 class sensor
29 {
30 public:
31 
32 
43  int setVisabilityOffset(int objID, float x, float y, float z);
44 
55  int setVisabilityTargetOffset(int objID, float x, float y, float z);
56 
63  int enableDebugVisibility(int objID, int state);
64 
70  int getSensorMode(int objID);
71 
78  void setTargetMode_Single(int objID, int target_ID);
79 
80 
88  void setTargetMode_Faction(int objID, string faction);
89 
90 
97  void setTargetMode_Closest(int objID);
98 
99 
106  void setTargetMode_Random(int objID);
107 
115  void enableVisibilityCheck(int objID, int state);
116 
123  void isTargetVisible(int objID);
124 }
int setVisabilityTargetOffset(int objID, float x, float y, float z)
Sets Target Offset of the sensors visability raycast. This is for the case where you may have somthin...
void isTargetVisible(int objID)
Returns 1 or 0 if the current target is visible. Must have target enableVisibilityCheck(...)
int enableDebugVisibility(int objID, int state)
Turns on/off the visability ray check debug lines for error checking the Visability Offsets...
void setTargetMode_Faction(int objID, string faction)
Part of the sensor targeting mode commands.
void enableVisibilityCheck(int objID, int state)
Part of the sensor targeting mode commands.
void setTargetMode_Closest(int objID)
Part of the sensor targeting mode commands.
int setVisabilityOffset(int objID, float x, float y, float z)
Sets Start Offset of the sensor visability raycast. This is for the case where you may have somthing ...
Definition: LUA_API_States.h:28
Definition: LUA_API_Sensor.h:28
int getSensorMode(int objID)
Returns the current sensor mode 0 = CLOSEST and 1 = All.
void setTargetMode_Single(int objID, int target_ID)
Part of the sensor targeting mode commands.
void setTargetMode_Random(int objID)
Part of the sensor targeting mode commands.