[SNIPPET] GetMarkerPosition

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...

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@
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,493
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
Re: GetMarkerPosition

A Checkpoint like this?:
hqdefault.jpg
 

PopandaulX

Active member
Joined
Jul 15, 2013
Messages
189
Reaction score
1
Re: GetMarkerPosition

Opcode.eXe link said:
A Checkpoint like this?:
hqdefault.jpg
Yep. Your addresses were only for one of the 32 checkpoints.
According to your code, you've used these:
0A8D: 1@ = read_memory 0xC7E008 size 4 virtual_protect 0
0A8D: 2@ = read_memory 0xC7E00C size 4 virtual_protect 0
0A8D: 3@ = read_memory 0xC7E010 size 4 virtual_protect 0
 

Nam_Chester

Member
Joined
Nov 15, 2014
Messages
24
Reaction score
0
Re: GetMarkerPosition

Can you create a cleo get checkpoint everywhere that the player want???
I'm just a newbie and I can only create a dance cleo animation so I can't make a cleo like this, please
 
Top