Sign in to follow this  
Hornete

[Documentation] List of All Engine functions

Recommended Posts

VouMorrer    409

Thank you, @Hornete ! i've been having some trouble to understand what functions do when i find them being called in the code. can you please tell me where are they defined, so i can try to understand by myself what each one do? 

i imagine some of them are defined somewhere out of modder's reach, right?

  • Like 1

Share this post


Link to post
Share on other sites
Hornete    10767
1 minute ago, VouMorrer said:

Thank you, @Hornete ! i've been having some trouble to understand what functions do when i find them being called in the code. can you please tell me where are they defined, so i can try to understand by myself what each one do? 

i imagine some of them are defined somewhere out of modder's reach, right?

All of these functions (except for some Map functions) are defined in the engine which uses C++.

 

Theres no way to look in the engine code and if you do find a way to crack open the engine code that probably breaks some Terms of service :razz:

 

you can ask me what functions you're having trouble understanding and I'll help you out.

 

  • Thanks 1

Share this post


Link to post
Share on other sites
Hornete    10767
13 hours ago, TheSkylarr said:

Weird thing, it seems that AnimState:SetPercent doesn't wanna work for me, the game treats it like it's nil and crashes.

How are you using it? and what's the specific crash?

Share this post


Link to post
Share on other sites
TheSkylarr    42
On 2/24/2021 at 9:47 AM, Hornete said:

How are you using it? and what's the specific crash?

Ah oops, that was my bad! SetPercent definitely works, I was just using it when the animation it was manipulating wasn't loaded.

Share this post


Link to post
Share on other sites
Hornete    10767
23 minutes ago, --- -.- said:

do you know ones for TheCamera :D?

TheCamera isnt an engine class. Its defined on the lua side, You can find the functions for it in scripts/cameras/followcamera.lua :)

Edited by Hornete
  • Sanity 1

Share this post


Link to post
Share on other sites
Friendly Grass    558

adding a couple I noticed didn't make it onto the list:

MapExplorer

Spoiler

ActivateLocalMiniMap
EnableUpdate
LearnAllMaps
LearnRecordedMap
RecordAllMaps
RecordMap
RevealArea

 

Label

Spoiler

Enable
SetColour
SetFont
SetFontSize
SetText
SetUIOffset
SetWorldOffset

 

MiniMap

Spoiler

AddAtlas
AddRenderLayer
ClearRevealedAreas
ContinuouslyClearRevealedAreas
DrawForgottenFogOfWar
EnableFogOfWar
IsVisible
RebuildLayer
SetEffects
ShowArea
ToggleVisibility

 

Edited by Friendly Grass
  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this