List of components and methods
Re: List of components and methods
And before this post
Re: List of components and methods
NutJob: made my day
Re: List of components and methods
Although everyone besides me probably already knew this, it might be worth noting that, while the list has an entry for class "FloorTriggerComponent", for example, the actual code to reference one of the floor triggers is simply "floortrigger". For example, to call the "disable" method, use:
I assume it's similar with other objects too.
Again, thanks a million JKos!!
Code: Select all
floor_trigger_8.floortrigger:disable()
Again, thanks a million JKos!!
Re: List of components and methods
Yes, many (most).Lark wrote:Although everyone besides me probably already knew this, it might be worth noting that, while the list has an entry for class "FloorTriggerComponent", for example, the actual code to reference one of the floor triggers is simply "floortrigger". For example, to call the "disable" method, use:I assume it's similar with other objects too.Code: Select all
floor_trigger_8.floortrigger:disable()
Again, thanks a million JKos!!
Re: List of components and methods
Great job dude! I was trying everything I could think of to get this.
Re: List of components and methods
Jkos, well done and thank you!!
ABSOLUTELY BRILLIANT
ABSOLUTELY BRILLIANT
Labyrinth of Lies (viewtopic.php?f=14&t=4400)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Legacy of Lies (viewtopic.php?f=22&t=12983&hilit=+legacy)
Re: List of components and methods
---------------------------------------------
class BrainComponent
setMorale(number)
performAction(number,number,string)
pursuit
follow
seek(number,number)
flee
wander
wanderIfPartyNotDetected
wait
pickUpItem
operate(string,string,string)
openLockWith
TricksterBrainComponent
---------------------------------------------
-
- Posts: 11
- Joined: Sat Oct 18, 2014 9:14 pm
Re: List of components and methods
Oh yeah. Starting off, the hardest thing about scripting is knowing what the fuck you can even do or what specific word you need to actually do it.Sertorius wrote:I'm a total mod newbie and have sorted out very little about scripts and lua in general (just got my very first lua viewer/editor today), but I have a feeling I should copy this to a txt file! Thanks!
Re: List of components and methods
I too must express my kudos and thanks to JKos.
Re: List of components and methods
Man, can I say I love you ? Thank to you I can start coding my mod right now !