Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_Action.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 
31 class action
32 {
33 public:
34 
50  int getActionID( int entityID, string actionName );
51 
52 
71  string getActionParam( int entityID, int actionID, string actionParam );
72 
91  void setActionParam( int entityID, int actionID, string actionParam, string actionValue );
92 
113  void fadeActionParam(int entity_ID, int action_ID, string param, float from, float to, float rate, int looped);
114 
131  void action.addToEntity(int objID,”PLAYER”, “AI Sensor”);
132 
133 
134 };
Definition: LUA_API_Action.h:31
void fadeActionParam(int entity_ID, int action_ID, string param, float from, float to, float rate, int looped)
Fade out any float based action property.
int getActionID(int entityID, string actionName)
Get the Id of the action with the string arg of actionName.
void action addToEntity(int objID, ”PLAYER”, “AI Sensor”)
addToEntity action.
void setActionParam(int entityID, int actionID, string actionParam, string actionValue)
Set a value in of specified Action property. Using this Function and getActionParam, you will be able to control an Entities Action from Script.
string getActionParam(int entityID, int actionID, string actionParam)
Get the property value from any entity Action. For use in script to control elements of your game...