Problem description:
Hello,
Is there a way to store a objects path in a var?
ID:965173
![]() |
|
![]() Sep 5 2012, 11:46 am
|
|
Not explicitly, no. But you can do this, if I'm not mistaken.
|
Can you describe what you want to do?
All datums (the base type for all reference data types) have a type variable you can access that holds the type path. You can store a type path in a variable like any other value: var/myVar = /obj/my/custom/object You can also create paths from text using text2path() var/myVar = text2path("/obj/item/[selected]") <edit> Corrected "path" to "type" |