Jump to content

Renaming an Object, without renaming the base objects.


scarycave

Recommended Posts

I'm having a bit of a problem, I've got some doors that all share the same coding, and in their coding they do a GetParentRef, and rename themselves to "parentsname's Door". Thing is they always seem to take the name of the last door placed in game's name. So Door5parentname's would display for every door that shares the coding, I'd really like to get this to work so I wouldn't have to make a ton of doors. If you got any ideas/solutions I'd love to hear them.
Link to comment
Share on other sites

That is the way it is, so, no simple solution.

 

One way I can think of is to use the OnLoad block to rename the door on the fly, so each time the player enters a room, the door inside get renamed. Problem here is if you have two doors in the cell and they must have different names.

 

A refinement of the above would be to rename the door when the player gets near it. Problem here is if two doors are real close to each other.

 

So, maybe a solution would be to rename the door when the player looks at it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...