ID:270976
 
I cant seem to make a code where when the car moves that the players controling it can see where they are moving it to around the track. When it moves it goes outa site. Plz Help
1. Use proper spelling and punctuation. Seriously: I'm having trouble reading your message.

2. Don't expect anyone to code it for you. Read the DM Guide and learn how to do these things yourself. Failing to read the DM Guide will result in a severe lack of knowledge.
FUTURE TRUNKS89 wrote:
I cant seem to make a code where when the car moves that the players controling it can see where they are moving it to around the track. When it moves it goes outa site. Plz Help

Here's a simple vehicle system:

mob
Move(new_loc,dir)
if(istype(src.loc,/obj/vehicles/))
var/obj/vehicles/V=src.loc
if(V)
V.Move(new_loc,dir)
return 0
return ..(new_loc,dir)
obj
vehicles
Enter(atom/movable/A)
if(ismob(A))
return ..(A)
Entered(mob/M)
if(ismob(M))
if(M.client)
M.client.perspective=EYE_PERSPECTIVE
M.client.eye=src
return ..()
Exit(atom/movable/A)
if(ismob(A))
return ..(A)
Exited(mob/M)
if(ismob(M))
if(M.client)
M.client.perspective=MOB_PERSPECTIVE
M.client.eye=M
return ..()