entities accessible after roundrestart?

Please post any questions about developing your plugin here. Please use the search function before posting!
Speed0x
Member
Posts: 84
Joined: Sun Feb 05, 2017 4:55 pm

entities accessible after roundrestart?

Postby Speed0x » Fri Nov 24, 2017 8:58 pm

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?
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: entities accessible after roundrestart?

Postby iPlayer » Fri Nov 24, 2017 9:00 pm

Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
Speed0x
Member
Posts: 84
Joined: Sun Feb 05, 2017 4:55 pm

Re: entities accessible after roundrestart?

Postby Speed0x » Fri Nov 24, 2017 9:03 pm

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
Speed0x
Member
Posts: 84
Joined: Sun Feb 05, 2017 4:55 pm

Re: entities accessible after roundrestart?

Postby Speed0x » Fri Nov 24, 2017 9:06 pm

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.
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: entities accessible after roundrestart?

Postby iPlayer » Fri Nov 24, 2017 9:07 pm

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.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 28 guests