Do not allow point_template to make duplicates?

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.

ficool2

L4: Comfortable Member
Oct 28, 2017
162
Edit: rephrased, ignore title

Would there be any way to check every frame if a particular entity exists, and if it doesn't, force a point_template to spawn the particular entity? (Note: the entity has no inputs/outputs other than the typical ones which every entity has, such as OnUser/FireUser)
 
Last edited:

monster860

L1: Registered
Feb 18, 2018
16
On the env_entity_maker, check the Enable AutoSpawn and AutoSpawn: Wait for entity destruction flags
 

ficool2

L4: Comfortable Member
Oct 28, 2017
162
On the env_entity_maker, check the Enable AutoSpawn and AutoSpawn: Wait for entity destruction flags

Unfortunately this didn't work, though I found a hacky workaround which involves the entity involved spamming FireUser1 on itself every 0.1 seconds which resets a timer. If the entity doesn't exist, the timer won't reset and therefore trigger the template to spawn it again.