Dateien

> > CS2D > Lua Scripts > Map Lua Functions
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Map Lua Functions >

8 Kommentare2 kb, 423 Downloads

alt 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!
1× editiert, zuletzt 16.01.12 05:08:35
Zugelassen von Seekay

Download Download

2 kb, 423 Downloads

Kommentare

8 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Apache uwu
User Off Offline

no they are variables

alt

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?
Ich mag es!

alt

maPmaKer
User Off Offline

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

alt yeahh

pipex
User Off Offline

good idead is good
Ich mag es!

alt

8Ball
User Off Offline

That's pretty cool.
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

That was mine idea T.T
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang