Spin(obj/sword in oview(6))
sword.icon = 'weapon.dmi'
sword.icon_state = "spin"
Problem description: I'm trying to replace the icon, not add one, what am I doing wrong? Also, is there a way to add a area onto it?
ID:144989
Jul 10 2006, 4:50 pm (Edited on Jul 10 2006, 4:57 pm)
|
|
Code: Spell
Spin(obj/sword in oview(6)) Problem description: I'm trying to replace the icon, not add one, what am I doing wrong? Also, is there a way to add a area onto it? |
In response to Shlaklava
|
|
Thanks, but that put an icon over it, and didn't replace it. I want the sword icon to not be there, and the spin icon to repeat indefinately.
|
In response to Shlaklava
|
|
try this edited version (i forgot to add something)
mob/proc/Spin(var/obj/sword/S in oview(6)) Just use that |
In response to Shlaklava
|
|
S.icon_state:undefined var
|
In response to Pakbaum
|
|
forgot the little " on the end...my bad...
|
In response to Shlaklava
|
|
Hehe, I fixed that, but it says it's undefined still, any ideas?
|
In response to Pakbaum
|
|
mob/proc/Spin() |
In response to Pyro_dragons
|
|
Uh oh . Thar be usr, cap'n.
mob/proc/Spin() |
In response to Mysame
|
|
Ah! It works now, only 1 problem. ALL swords on the screen spin, whereas I just want the one activated to spin.
|
if its an animation use flick()
try that