ID:160216
Oct 23 2008, 7:53 am (Edited on Oct 23 2008, 8:12 am)
|
|
I found out how to do it myself.
|
Oct 23 2008, 7:54 am
|
|
What do you mean? That was a rather vague explanation of what you want.
|
In response to Andre-g1
|
|
How would I assign something like '/obj/items/coin' to a var?
Edit: How would I assign it to a var and have it work with new()? |
In response to Armiris
|
|
You can :
a) mob/verb/CreateType() or b) (which I think is what you want) var/type_create = /obj/items/coin // assign type_create to the coin |
In response to Andre-g1
|
|
The OP already solved his problem, but note new() needs a Type argument before the parentheses, and the shortcut to omit it uses the defined type of the var to get the type as a shorthand, not the runtime value of the var (so your first example works, but the 2nd one needs to be more like var/obj = new type_create()).
|