English Map Lua Functions icon

8 comments
16.01.12 05:05:28 am
like 6 like it!
2 kb, 144 Downloads
PyKemis
User
Offline Off
With this you can script functions in lua and call them when an object is triggered in the map editor.

In this example the gate will open then close, the parameters for "toggle" are (identifier,entity1,entity2), a boolean is stored in identifier and will toggle either entity1 or entity2 depending on it's state.

You can also create your own functions within the script. (I'll make more and update it here, and you can suggest some :))

Current functions:
> toggle(id,entity1,entity2)

Enjoy!
imageimageimage
edited 1×, last 16.01.12 05:08:35 am
ok This file has been reviewed and approved by Seekay (04.12.15 01:59:17 pm)

Comments

8 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
18.06.14 01:14:44 pm
Up
PhoenixD
User
Offline Off
what is it
16.06.14 04:00:31 pm
like I like it!
Up
Pro Gaming cs16
User
Offline Off
@user PyKemis: its good thx i will use
@user Misho: wrong i look here
i like it
20.01.12 06:49:01 pm
Up
PyKemis
User
Offline Off
no they are variables
17.01.12 04:10:55 pm
like I like it!
Up
Misho
User
Offline Off
This is a good idea!
If the mapper just see this... But they don't look here
Btw do i need to name the triggers the way you name them?
16.01.12 07:25:26 pm
like I like it!
Up
maPmaKer
User
Offline Off
Sounds really nice, I might want to try it later. It's gonna be really interesting, indeed.
16.01.12 05:22:12 pm
like I like it!
Up
pipex
User
Offline Off
good idead is good
16.01.12 06:51:45 am
like I like it!
Up
8Ball
User
Offline Off
That's pretty cool.
16.01.12 06:15:24 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
That was mine idea T.T
To the start Previous 1 Next To the start