Please or Register to create posts and topics.

Naming objects on command

Is it possible to change the name of objects on command? Basically, I want a trigger to name the acitvator (a cube) but i cant find the correct input. Im sure i saw something on here mention this ages ago, but i cant find it.

Image
I think in terms of boolean variables. Generally, it makes things easier.

I know there have been a million posts on this... and it's on the tip of my tongue... but I'm blanking on it.

My Maps:
[spoiler][SP] Alternate[/spoiler]

ent_setname

Image
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."
iWork925 wrote:
ent_setname

That is a console command that sets the name of the object where the player is looking. What you should be using is 'ent_fire !activator addoutput "targetname namehere"'

You could also use 'classname' instead of targetname as well, however classname really defines what kind of entity it is and there is a possibility it will not work.

?????????????????????????????TWP Releases | My Workshop

He wanted a trigger to change the name of the cube.
Tell the trigger (like chicken already said)

Code: Select all
OnTrigger
!activator
addoutput
targetname name

"Targetname name" into the 4. empty field below addoutput. NEVER use "" in ANY field or your VMF will fail loading and youll have to remove the "" by hand.

Thanks everyone, that works great

Image
I think in terms of boolean variables. Generally, it makes things easier.