So in this Game, the map of the Game is the map of another Game.... Players can move the Camera all across the Map, but the can't actually move their Player unless they set a WayPoint...
I am a really noobie person with some aspects of BYOND...
I want to create a WayPoint that only the player will see.
Code:
obj
WayPoint
icon = 'WayPoint.dmi'
mob
var
WayPointLocation
mob/verb/setWaypoint()
set name = "Set Waypoint"
usr.WayPointLocation = usr.loc
usr.WayPointLocation += new /obj/WayPoint
mob/verb/removeWayPoint()
usr.WayPointLocation = null
usr.WayPointLocation -= new /obj/WayPoint
mob/verb/toggleWayPoint()
if(!usr.Waypoint)
setWaypoint()
else
removeWayPoint()
Problem description: Compiles properly but it doesn't allow me to place a WayPoint on the map... Has an error for usr.loc being src...
Also, I don't know how to make it a multiple instance in which 10 different clients would each have their own WayPoint and not see each others WayPoint.
Sorry for having no clue on where to start.
There are no errors and the code looks clean but it doesn't do anything and doesn't throw an error in the game until I click remove waypoint (Create Waypoint does nothing and throws no errors)