Point_Template on the VDC
Quote from Brainstatic on August 17, 2011, 2:23 pmI was reading the VDC article on the point_template entity only to find myself rather confused by its description on how the name fixup works. I don't exactly understand the &0001 stuff works like how and where that gets added to the targetname and which entity receives &0001 or which has &0002 added to the name.
So let's say I have the first flag checked for the point_template (so now it won't remove template entities).
And I do not have the second flag checked (so now it will do name fixup).
And the point_template has only Template 1 specified in its keyvalues. The targetname of the specified Template 1 entity is "cubemaker" without the quotes.So with the setup I just described, what will the targetname of the original Template 1 "cubemaker" entity and its newly spawned "clone," created by the point_template and an env_entity_maker, be after the env_entity_maker receives a force spawn input?
I was reading the VDC article on the point_template entity only to find myself rather confused by its description on how the name fixup works. I don't exactly understand the &0001 stuff works like how and where that gets added to the targetname and which entity receives &0001 or which has &0002 added to the name.
So let's say I have the first flag checked for the point_template (so now it won't remove template entities).
And I do not have the second flag checked (so now it will do name fixup).
And the point_template has only Template 1 specified in its keyvalues. The targetname of the specified Template 1 entity is "cubemaker" without the quotes.
So with the setup I just described, what will the targetname of the original Template 1 "cubemaker" entity and its newly spawned "clone," created by the point_template and an env_entity_maker, be after the env_entity_maker receives a force spawn input?
Quote from iWork925 on August 17, 2011, 11:22 pmIsn't this explained on the page under "Notes on name fixup"?
Isn't this explained on the page under "Notes on name fixup"?

PortalStories.com
"Oh, in case you got covered in that repulsion gel, here's some advice the lab boys gave me: DO NOT get covered in the repulsion gel."
Quote from Brainstatic on August 17, 2011, 11:32 pmiWork925 wrote:Isn't this explained on the page under "Notes on name fixup"?Technically, yes. But not very clearly.
Quote:With fixup on, the first entity spawned will be named with &0002. If the Do not remove template spawnflag of the point_template is enabled, the unremoved template entity will have its name fixed with number &0001.So does that mean the newly spawned entity will have the targetname "cubemaker&0002" without the quotes? And the original cubemaker that serves as the template will be renamed to "cubemaker&001"? I tried those, and they didn't work.
Technically, yes. But not very clearly.
So does that mean the newly spawned entity will have the targetname "cubemaker&0002" without the quotes? And the original cubemaker that serves as the template will be renamed to "cubemaker&001"? I tried those, and they didn't work.
Quote from ChickenMobile on August 18, 2011, 5:48 amWhat it's saying is the object which the template spawns will include a 'postfix' of a certain number which it then can be individually accessed, however any outputs that are used to access the object which the template has spawned will not be fixed to the object automatically.
According to this diagram...
You were kind of right with the names, but remove the '&' symbol, then you should be able to find them inside your map.
To test if it is, create a server, fire whichever outputs to spawn your items, then type in the console "ent_fire " and see what comes up.
What it's saying is the object which the template spawns will include a 'postfix' of a certain number which it then can be individually accessed, however any outputs that are used to access the object which the template has spawned will not be fixed to the object automatically.
According to this diagram...
You were kind of right with the names, but remove the '&' symbol, then you should be able to find them inside your map.
To test if it is, create a server, fire whichever outputs to spawn your items, then type in the console "ent_fire " and see what comes up.
Quote from Brainstatic on August 18, 2011, 11:58 amchickenmobile wrote:You were kind of right with the names, but remove the '&' symbol, then you should be able to find them inside your map.
To test if it is, create a server, fire whichever outputs to spawn your items, then type in the console "ent_fire " and see what comes up.All right, I will give that a try. Thank you for the help.
To test if it is, create a server, fire whichever outputs to spawn your items, then type in the console "ent_fire " and see what comes up.
All right, I will give that a try. Thank you for the help.
