Skyline Lua API  Version 1.0 RC1
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 - 2016 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 - 2016
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
28 class sensor
29 {
30 public:
31 
38  void setTargetMode_Single(int objID, int target_ID);
39 
40 
48  void setTargetMode_Faction(int objID, string faction);
49 
50 
57  void setTargetMode_Closest(int objID);
58 
59 
66  void setTargetMode_Random(int objID);
67 
75  void enableVisibilityCheck(int objID, int state);
76 
83  void isTargetVisible(int objID);
84 }
void isTargetVisible(int objID)
Returns 1 or 0 if the current target is visible. Must have target enableVisibilityCheck(...)
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.
Definition: LUA_API_States.h:28
Definition: LUA_API_Sensor.h:28
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.