new /obj/pie/P(src.loc)
P.tastyness = 99999999
//This of course does not work
//Just an example
This is sort of what I am doing...
How can I change the vars.
ID:163192
![]() Sep 28 2007, 9:15 am
|
|
How can I make an item but for example I wanna change a var in it also.. just for the new item.. so like
new /obj/pie/P(src.loc) This is sort of what I am doing... How can I change the vars. |
![]() Sep 28 2007, 9:37 am (Edited on Sep 28 2007, 9:49 am)
|
|
Well, what you need to do is keep a reference to the object you're creating, so you can modify it.
|