below is the control panel code.
obj/Controls
icon = 'Ships.dmi'
icon_state = "ControlPanel"
ShipControl
DblClick()
set src in oview(usr,1)
usr.flight=1
usr.flight()
for(var/Ship/Deadalus/T in world)
usr.client.eye = T
usr.client.perspective = EYE_PERSPECTIVE
usr.shipD=1
usr.Armed=0
T.density=0
And here is the Proc flight()
mob/proc/flight()
if(src.flight==1)
src.verbs+=typesof(/mob/ship/verb)
return
if(src.flight==0)
src.verbs-=typesof(/mob/ship/verb)
return
Problem description:
It seems i am relying on this forum more and more lately =\.
Anyhoo, my problem is...well....it wont give me the verbs when i dblclick() the controls, but when i come off the controls i get the verbs...i dont understand that, why wont it give me the verbs at the correct time?