ID:169326
 
How would one go about setting the size of an object? The problem I have is: I have an object with a .bmp icon state that is 11 by 11 tiles big. When I have the object created on a client's screen, however it is only one tile big. How do I fix this?
Like so:
obj
asdf
icon='hud.png'
New(loc,client/c)
if(c)
for(var/t in icon_states(icon))
var/obj/asdf/s=new
s.icon_state=t;s.screen_loc=t
c.screen+=src
..()


Rawr, will that work?
In response to Ol' Yeller
Well, there aren't any icon states in the file. There's just the .bmp icon, which is one icon.

(Edit)
I tried doing it..
obj
Hud
Hud_Base
layer=MOB_LAYER+1
icon = 'HudBorders.bmp'

New(loc,client/c)
if(c)
for(var/t in icon_states(icon))
var/obj/Hud/Hud_Base/s=new
s.icon_state=t
s.screen_loc=t
c.screen+=src
..()


I got these errors:

Hud.dm:11:error::invalid expression
Hud.dm:10:s :warning: variable defined but not used

In response to Vexonater
Don't indent under new()
[edit]The new() where you're creating the hud obj