I can't get this to work - when I run GG it fires back an error due to nil value for 'name'.
I have listed the code below and would welcome any suggestions - all I'm trying to do is to get the name of an entity to be shown onscreen at its location- several entities/objects use the same script.
function object_property_init_name(e,name)
x={}
y={}
z={}
object_property_name={}
object_property_name[e]=name
end
function object_property_main(e)
-- whatever object uses this script we put its co-ord in the array
object = g_Entity[e]['obj'];
x[object]= g_Entity[e]['x']
y[object]= g_Entity[e]['y']
z[object]= g_Entity[e]['z']
--PromptLocal(e,object) <<<<< this works fine
PromptLocal(e,object_property_name)
--Text(x[object],z[object],1,object_property_name)
end