Help with your scripting

Up-to-date List of Skyline Lua Commands

Up-to-date List of Skyline Lua Commands

Postby Shando » 27 Mar 2015, 14:48

Hi all,

Just wondering if anyone has an up-to-date list of all available Lua Commands in Skyline ( the online API is a bit out of date ), complete with required parameters?

I have seen various update logs showing the new Commands as they have been released, but some of them don't have the parameters ( such as the navmesh ones ):

Code: Select all
navmesh.addEntity();
navmesh.removeEntity();
navmesh.addDCC();
navmesh.setDestination();
navmesh.getDestination();
navmesh.getRandomPosition()
navmesh.setAgentHeight();
navmesh.setAgentWidth();
navmesh.setAgentMaxSpeed();
navmesh.setAgentMaxAccel();
navmesh.setAgentColQueryRange();
navmesh.setAgentPathOptRange();
navmesh.setAgentControlled();
navmesh.showAgentDebug();
navmesh.isDestinationReached();
navmesh.getAgentSpeed();
navmesh.getAgentMaxSpeed();
navmesh.getAgentVelocity();
navmesh.stopAgent();


Any help would be greatly appreciated.

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Up-to-date List of Skyline Lua Commands

Postby ant0N » 27 Mar 2015, 15:42

Hi! :D
the set command is used:
navmesh.setCommand(obj,1,1,1)

new examples we can see the use of most command.
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Up-to-date List of Skyline Lua Commands

Postby Shando » 28 Mar 2015, 00:30

Hi ant0N,

Yes, I can guess at most of them ( or work them out from examples ;) ), but I'm just a little bit concerned that new users won't even realise that some of these commands exist, unless they trawl through the various examples, or take a look at the update logs.

I didn't even realise that the Navmesh commands were available until I searched the forum and saw them listed in an update ( I must have missed them in the update log :oops: ). Also, it's sometimes hard to work out what some commands return ( vector3, number, boolean etc. ).

In fact, I even wrote a couple of commands that I needed myself ( well, Lua equivalents ) and then found out that they were already available whilst searching the forum for something else :|

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Up-to-date List of Skyline Lua Commands

Postby StarFire » 30 Mar 2015, 14:42

oops sorry guys :oops:
I have uploaded what I have in my API folder but there are quite a few still missing. SP will add these as soon as he gets as chance. :roll:
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 6 guests

cron