Scripts / All functions we have access to

Author
Message
ozarkprime
9
Years of Service
User Offline
Joined: 31st Jul 2014
Location:
Posted: 31st Jul 2014 16:53
Is there a full api reference for the game engine? Tried looking for one and I am not seeing it. Just want an api reference with all available functions and classes that I can access and what arguments I need to pass for each. I also noticed that their is message before posting saying to visit the FAQ board but I got a message saying it was hidden from view, so I apologize if this has been answered before.
PM
Avram
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Serbia
Posted: 1st Aug 2014 12:15
Just look in global.lua file, all available FPSC:R functions (not including built-in LUA functions). For LUA built-in functions, check the LUA language reference: http://www.lua.org/manual/5.1/

tomjscott
User Banned
Posted: 1st Aug 2014 17:42
There are actually many more commands available than just what can be seen in the global.lua file. There is also the music.lua file and all the AI commands that you can find within the various stock ai scripts.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0071
ozarkprime
9
Years of Service
User Offline
Joined: 31st Jul 2014
Location:
Posted: 2nd Aug 2014 03:27
So there is not one general api reference guide? The solution is to hunt and peck until you find a function that will do what you wants?

Wow. Okay, that's just awesful.
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 2nd Aug 2014 08:01
It is hard to write a manual for stuff that has just been released as a beta.

But there are a lot of little jewels to be found with more found every day.

The best way is to open the scripts and see what is being called and how it is being called.

Reading thru the forums is another good way to find out what is available.

BTW: Welcome.

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 4gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Aug 2014 18:12
there's a rough guide in the update logs but honestly this is still a beta and stuff changes all the time so writing a manual is pointless
better to learn from the current scripts as then u have examples already

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-05-03 14:24:31
Your offset time is: 2024-05-03 14:24:31