You just have to enter the marker ID, but on most servers you only have one active. I've also used this for my teleporter like you can see below.
*By marker I mean the red checkpoint...
Call function:
Function:
*By marker I mean the red checkpoint...
Code:
for 13@ = 0 to 31
if 0AB1: @GetMarkerPosition 1 13@ 14@ 15@ 16@
then
Actor.PutAt($PLAYER_ACTOR,14@,15@,16@)
end
end
Call function:
Code:
if 0AB1: @GetMarkerPosition 1 ID 0@ X 1@ Y 2@ Z 3@
then
wait 0
end
Function:
Code:
:GetMarkerPosition
0@ *= 0xA0
0@ += 0xC7DD58
0@ += 0x30
0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0 // X
0@ += 0x4
0A8D: 2@ = read_memory 0@ size 4 virtual_protect 0 // Y
0@ += 0x4
0A8D: 3@ = read_memory 0@ size 4 virtual_protect 0 // Z
0@ += 0x1A
0A8D: 4@ = read_memory 0@ size 1 virtual_protect 0 // ACTIVE
if and
8043: 1@ == 0.0
8043: 2@ == 0.0
8043: 1@ == 1099.551025
8043: 2@ == 1601.496948
8043: 1@ == 2695.624023
8043: 2@ == -1704.687988
4@ == 1
then
0485: return_true
else
059A: return_false
end
0AB2: ret 3 1@ 2@ 3@