ID:261177
 
I have a new() proc that assigns a special name to a space ship. However, if that space ship is connected to a client, I'd like it to keep it's name. Here is what I have tried:

New()
if(key)
..()
else
Space_Ship_Name_Process() //blah

This does not work. Any ideas?
New()
..()
if(key) src.name = src.key
else Space_Ship_Name_Process()


I think that's what you'd have to do.
In response to Spuzzum
*sigh* Nope...

mob
Star_Ship
Black2
var
model = "Heavy Fighter"
global
basecodenum = 0
icon_state = "Black2"
name = "Black"
New()
if(usr.key)
usr.name = usr.key
..()
else
blah...
..()


This does not work. I'll keep working till it does.
In response to Lord of Water
The problem is that mobs don't have keys during the New proc.