Page 2 of 4

Re: List of components and methods

Posted: Tue Oct 28, 2014 1:01 am
by NutJob
And before this post

Image

Re: List of components and methods

Posted: Tue Oct 28, 2014 1:33 am
by Jouki
NutJob: made my day :D

Re: List of components and methods

Posted: Tue Oct 28, 2014 2:42 am
by Lark
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:

Code: Select all

floor_trigger_8.floortrigger:disable()
I assume it's similar with other objects too.

Again, thanks a million JKos!! :D

Re: List of components and methods

Posted: Tue Oct 28, 2014 2:46 am
by NutJob
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:

Code: Select all

floor_trigger_8.floortrigger:disable()
I assume it's similar with other objects too.

Again, thanks a million JKos!! :D
Yes, many (most).

Re: List of components and methods

Posted: Tue Oct 28, 2014 2:55 am
by MrChoke
Great job dude! I was trying everything I could think of to get this.

Re: List of components and methods

Posted: Tue Oct 28, 2014 3:58 am
by akroma222
Jkos, well done and thank you!!

ABSOLUTELY BRILLIANT :D

Re: List of components and methods

Posted: Tue Oct 28, 2014 4:17 am
by Batty
Image
---------------------------------------------
class BrainComponent

setMorale(number) :twisted:
performAction(number,number,string)
pursuit
follow
seek(number,number)
flee
wander
wanderIfPartyNotDetected
wait
pickUpItem
operate(string,string,string)
openLockWith
TricksterBrainComponent

---------------------------------------------

Re: List of components and methods

Posted: Tue Oct 28, 2014 5:49 am
by cfisher2833
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!
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.

Re: List of components and methods

Posted: Tue Oct 28, 2014 7:36 am
by darkwuulf
I too must express my kudos and thanks to JKos.

Re: List of components and methods

Posted: Tue Oct 28, 2014 10:59 am
by Jhaelen
Man, can I say I love you :D ? Thank to you I can start coding my mod right now !