Forum

> > CS2D > Maps/Editor > Make lua in map?
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch Make lua in map?

12 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Make lua in map?

Crazy_Biawak
User Off Offline

Zitieren
Hi there!
I know make lua in map like this
Example:
1
2
3
4
5
6
7
addhook('spawn', 'inspawn')
function inspawn(id)
     parse('setmaxhealth '.. id ..' 1')
     parse("equip "..id.." 35")
     parse("setarmor "..id.." 100")
     parse("setweapon "..id.." 35")
end
But i want more to know?
3× editiert, zuletzt 17.09.11 13:31:41

alt Re: Make lua in map?

Tajifun
User Off Offline

Zitieren
Do you mean a lua script, which will be executed automatically, if you play a certain map?

alt Re: Make lua in map?

Yates
Reviewer Off Offline

Zitieren
Then if you were to start a server. The lua would be sent with the map. Which isn't handy, is it?

alt Re: Make lua in map?

Apache uwu
User Off Offline

Zitieren
@Yates, that would be useful if you wanted your map to work for anyone who runs it on their own.

alt Re: Make lua in map?

danh
User Off Offline

Zitieren
if u hav a map named testThingy.map, u need a lua called testThingy.lua. Basically, u need to name the lua the same as the map (and .lua at the end), and put it in /maps

alt Re: Make lua in map?

Yates
Reviewer Off Offline

Zitieren
user danh hat geschrieben
[...] and put it in /maps

You don't need to put the Lua in the map folder. As long as it has the same name as the map it will be transfered with the map.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht