ID:141672
 
Code:
        verb/activate_hyperspace_window()
set src in view(0)
set category = "Ship"
if(usr.loc==locate("flight space"))
for(var/Ship/Deadalus/T in world)
var/window
window= /turf/hyperwindow
new window (T.loc)

Above is my verb to create the window

Problem description:

Yes the title probably mis-leads you as im really asking a very nooby simple question.
When creating my window, i want it to appear 2 tiles infront of the Daedalus (AKA, T). I currently have T.loc in place, because 1)it works lol, not how i want it to mind.. and 2) i cant think of anything XD. Anyway, 2 tiles infront of the daedalus, so i guess i would have to get it to define the direction its facing first, then create it.

OK, wrapping it up, help of anykind is always welcome.


Look up the get_step() proc, then use if(usr.dir==[whatever direction]), T.loc = usr.x+1 (x or y or both depending on their direction).
In response to Mizukouken Ketsu
Thanks! lol