Page 1 of 1

entities accessible after roundrestart?

Posted: Fri Nov 24, 2017 8:58 pm
by Speed0x
what happens to BaseEntites, that spawn via map after roundrestart? if i set an entity in python like this, during a round:

Syntax: Select all

for ent in EntityIter():
if ent.get_key_value_string("targetname") == "some_targetname":
last_round_ent = ent

will "last_round_ent" still be accessable next maprestart?

Re: entities accessible after roundrestart?

Posted: Fri Nov 24, 2017 9:00 pm
by iPlayer

Re: entities accessible after roundrestart?

Posted: Fri Nov 24, 2017 9:03 pm
by Speed0x
i was specifically thinking of func_wall, when i asked the question. if i remember correctly, it was still accessible in the next round when i tested a while back, thats kinda why im trying to pose this question here

Re: entities accessible after roundrestart?

Posted: Fri Nov 24, 2017 9:06 pm
by Speed0x
okay i've just read the wiki now. i hope it is correct, because it is pretty clear on which entities will reset and which not. thanks iPlayer.

Re: entities accessible after roundrestart?

Posted: Fri Nov 24, 2017 9:07 pm
by iPlayer
func_wall (as well as func_brush and func_illusionary) is on that list, so it carries its state through rounds, including its open/closed state. It might be useful for map creators to transit some data between rounds (when plugins are not available).

I believe func_wall will also preserve the targetname.