ID:150004
 
I tried programming a stationary gun, but none of my ideas worked. I just want it to rotate. I know how to program it to shoot, i just can't figure out how to get it to stop walking around.
mob/stationarymachina
Move()
return 0
proc/nomove()
nm=1
clien
north()
if(nm=1)
return 0
else
return

whatever, something like that.....
In response to mystX
my cookie!!! I answered it first my cookie! Always my cookie!
In response to Air _King
That made you sound very immature.
In response to Nadrew
In response to Air _King
I never said that wasn't immature either.
In response to Air _King
so...I helped him morest! No, but really, I did add a bit of extra stuff in case he asked for something like that, cause they usually do.
mob/stat_gun
name = "Stationary Gun"
layer = FLY_LAYER
verb/EnterGun()
set src in oview(1)
if(istype(usr,/mob/Player/) == FALSE) return
if(var/mob/Player in src.loc) return
usr.loc = src.loc
usr:ingun = TRUE
usr << "You enter [src]."
verb/Fire()
set src in usr.loc
oview() << "[src] is fired."
verb/ExitGun()
set src in usr.loc
usr.ingun = FALSE
if(!usr.Move(NORTH)) usr.Move(SOUTH)
if(usr in src.loc)
if(!usr.Move(EAST)) usr.Move(WEST)
if(usr in src.loc)
usr << "Sorry, your screwed."
del usr
mob/Player/Move()
if(!ingun) ..()
else
for(var/mob/stat_gun/G in src.loc)
G.dir = src.dir


I beleive this will work, give it a try.