Jump to content

Assign entity keys to entities in editor


Rick
 Share

Recommended Posts

Sometimes I find I just need to assign entity keys to entities in the editor so I can flag them as something. I know right now I have to attach a script and do it that way, but it would be nice to be able to do this from the editor. Maybe have a Keys tab when you select the entity that allows us to add a dynamic amount of key/value pairs to it. For csg this should flag it to not get collapsed.

Link to comment
Share on other sites

entity:SetKeyValue("key", "value)

 

I want to be able to do that in the editor for any entity for any amount of keys. You can query these with entity:GetKeyValue("key") to tell what certain things are. This is a way to set variables inside the entity itself as opposed to doing it via a script. Some things may need to be tagged with keys but don't require a full script.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...