Files

> > CS2D > Lua Scripts > Map Lua Functions
Files overviewCS2D overviewLua Scripts overview

English Map Lua Functions >

8 comments2 kb, 442 Downloads

old Map Lua Functions

Apache uwu
User Off Offline

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!
edited 1×, last 16.01.12 05:08:35 am
Approved by Seekay

Download Download

2 kb, 442 Downloads

Comments

8 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Apache uwu
User Off Offline

no they are variables

old

Misho
User Off Offline

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?
I like it!

old

maPmaKer
User Off Offline

Sounds really nice, I might want to try it later. It's gonna be really interesting, indeed.
I like it!

old yeahh

pipex
User Off Offline

good idead is good
I like it!

old

8Ball
User Off Offline

That's pretty cool.
I like it!

old

Infinite Rain
Reviewer Off Offline

That was mine idea T.T
I like it!
To the start Previous 1 Next To the start