Wu-Tang Clan
2014-01-24 16:21:47
I understand sps.getplayerpos(); and sps.debugplayerpos(); but is there a function that outputs which map you are using?
Basically my setup is in the fightcaves, and I have 2 different maps- FC_01 is in the lobby, FC_02 is in the fight cave. I want the script to be able to determine the position of the player in each map. When I do things like getplayer it notices the map I'm using and everything.
and all the WriteLn(); does is says 'sps' in the debug box…
So the question is, how do I get a function to output which map I'm using? I checked the include but didn't see anything.
Basically my setup is in the fightcaves, and I have 2 different maps- FC_01 is in the lobby, FC_02 is in the fight cave. I want the script to be able to determine the position of the player in each map. When I do things like getplayer it notices the map I'm using and everything.
procedure WhereAreWe;
begin
WriteLn(SPS.getPlayerPos());
sps.debugPlayerPos();
//FC_02 = {X = 70, Y = 106}
//FC_O1 = {X = 98, Y = 110}
Writeln(sps.getName());
if sps.getName() = 'FC_01' then
begin
writeln('We are in FC_01');
end;
if sps.getName() = 'FC_02' then
begin
writeln('We are in FC_02');
end;
end;This doesn't do anythingand all the WriteLn(); does is says 'sps' in the debug box…
So the question is, how do I get a function to output which map I'm using? I checked the include but didn't see anything.