SphereCommunity
Position object - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Position object (/Thread-Position-object)



Position object - gonnie - 08-17-2012 10:52 AM

is there a way to create an object that is a position like

serv.newposition = x,y,z

or something like that?

because i saw this

Code:
[FUNCTION point_info]
IF !<ARGS>
VAR.TI = 0 // Failed
RETURN 0
ENDIF
SERV.NEWNPC = c_man
NEW.FLAGS = 04
NEW.P = <ARGS>
NEW.FIX
VAR.TI = 1 // Success
VAR.TI_P = <NEW.P>
VAR.TI_X = <NEW.P.X>
VAR.TI_Y = <NEW.P.Y>
VAR.TI_Z = <NEW.P.Z>
VAR.TI_LOS = <NEW.CanSeeLOS>
VAR.TI_SEE = <NEW.CanSee>
VAR.TI_RFLAGS = <NEW.REGION.FLAGS>
VAR.TI_DISTANCE = <NEW.DISTANCE>
NEW.REMOVE
VAR.TI_TEMP =
RETURN 0

do i always need to create an npc to get data from a position?


RE: Position object - Extreme - 08-17-2012 11:02 AM

SERV.NEWITEM I_ITEM_ID
NEW.P X,Y,Z,MAP

But I don't understand your question...
Do you want to create something in one position, but what? Who will create?