Forum

> > CS2D > Scripts > LUA Q: Removing entities?
Forums overviewCS2D overview Scripts overviewLog in to reply

English LUA Q: Removing entities?

11 replies
To the start Previous 1 Next To the start

old LUA Q: Removing entities?

Anders4000
User Off Offline

Quote
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
edited 1×, last 11.03.12 01:46:18 am

old Re: LUA Q: Removing entities?

Anders4000
User Off Offline

Quote
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!

old Re: LUA Q: Removing entities?

EngiN33R
Moderator Off Offline

Quote
user Anders4000 has written
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.

old Re: LUA Q: Removing entities?

Anders4000
User Off Offline

Quote
user EngiN33R has written
user Anders4000 has written
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.

old Re: LUA Q: Removing entities?

EngiN33R
Moderator Off Offline

Quote
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.

old Re: LUA Q: Removing entities?

Anders4000
User Off Offline

Quote
user EngiN33R has written
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! (:
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview