MM.vars=M.vars.Copy()
Problem description:
Clones.dm:75:error: MM.vars: cannot change constant value
I want to set the MM's vars, which is a mob, equal to M's vars, which is also a mob.
ID:139009
Aug 10 2011, 1:43 pm
|
|
Code:
MM.vars=M.vars.Copy() Problem description: Clones.dm:75:error: MM.vars: cannot change constant value I want to set the MM's vars, which is a mob, equal to M's vars, which is also a mob. |
Aug 10 2011, 1:56 pm
|
|
I'd go about it in this manner:
|
In response to LordAndrew
|
|
Do you know why it gives me this?
runtime error: Cannot read null.icon For this code: var/mob/Clone/MM = new() |
In response to Raimo
|
|
...oh right. Woops, forgot you have to account for certain variables that aren't meant to be modified at runtime.
You need to add after the for(vars) part...
if(issaved(o.vars[v]))
|