Forum

> > CS2D > Scripts > LUA Q: Removing entities?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch LUA Q: Removing entities?

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt LUA Q: Removing entities?

Anders4000
User Off Offline

Zitieren
Hello! I'm making a new DOM mod that will hopefully make more servers host these maps.

I have a problem though. Is it possible to remove entities via LUA?
I've looked at the Cmd Reference on http://www.cs2d.com/help.php?cat=all but I didn't find anything.

I want code looking like this:
1
2
3
4
addhook("roundstart","akd_dom_roundstart")
function akd_dom_roundstart(id)
	-- Remove flag entities
end
Thank you!
- Anders4000
1× editiert, zuletzt 11.03.12 01:46:18

alt Re: LUA Q: Removing entities?

Anders4000
User Off Offline

Zitieren
Well, I posted the three LUA functions missing that I need for making my mod. I had never thought, that I would get to a point, where there was no way work-around!

alt Re: LUA Q: Removing entities?

EngiN33R
Moderator Off Offline

Zitieren
user Anders4000 hat geschrieben
Well, I posted the three LUA functions missing that I need for making my mod. I had never thought, that I would get to a point, where there was no way work-around!


Well, you might try to simulate the flags via Lua.

alt Re: LUA Q: Removing entities?

Anders4000
User Off Offline

Zitieren
user EngiN33R hat geschrieben
user Anders4000 hat geschrieben
Well, I posted the three LUA functions missing that I need for making my mod. I had never thought, that I would get to a point, where there was no way work-around!


Well, you might try to simulate the flags via Lua.

I have made a good bit of code. But problem is, that I want my DOM mod to work with already made dom_maps.
I put an image over each flag, but the flag's yellow color shines through the image. Can't see how to fix this.
Also, I need to end the game in favor of a team somehow.

alt Re: LUA Q: Removing entities?

EngiN33R
Moderator Off Offline

Zitieren
Yes, well, unfortunately, we don't have such extensive modding capabilities, so you have to either wait until such appear or with quite a lot of ingenuity come up with a good workaround.

alt Re: LUA Q: Removing entities?

Anders4000
User Off Offline

Zitieren
user EngiN33R hat geschrieben
Yes, well, unfortunately, we don't have such extensive modding capabilities, so you have to either wait until such appear or with quite a lot of ingenuity come up with a good workaround.

Yup, I know. I'm gonna wait for now. If I come across an idea, I'm gonna try to work it out. Thanks for the help! (:
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht