11.03.2009, 17:50
I got that idea a few minutes ago...
You know that: You are trying to make a script that creates explosions on the floor of the position you are at, but you dont know how to get the ground Z coordinate.
I wanted to do it something like that:
A timer, refresh rate 500ms or something,
a variable which contains the current X/Y coordinates,
a variable which can be 0, 1 or 2...
If the variable is 0: SetPlayerPosFindZ to the current X/Y coordinate you want to have, set variable to 1.
If the variable is 1: SetPlayerPosFindZ again, because it doesnt work correctly if you run it 1 time (I fell into the water), set variable to 2.
If the variable is 2: GetPlayerPos and save the coordinates to a file, or SQL database, and do step 0 again with X/Y +/- 1...
Do you think that would actually work? I really think so, but it would just be good if you are AFK or at school or something, i can image it would take some hours/days.
... lesley
You know that: You are trying to make a script that creates explosions on the floor of the position you are at, but you dont know how to get the ground Z coordinate.
I wanted to do it something like that:
A timer, refresh rate 500ms or something,
a variable which contains the current X/Y coordinates,
a variable which can be 0, 1 or 2...
If the variable is 0: SetPlayerPosFindZ to the current X/Y coordinate you want to have, set variable to 1.
If the variable is 1: SetPlayerPosFindZ again, because it doesnt work correctly if you run it 1 time (I fell into the water), set variable to 2.
If the variable is 2: GetPlayerPos and save the coordinates to a file, or SQL database, and do step 0 again with X/Y +/- 1...
Do you think that would actually work? I really think so, but it would just be good if you are AFK or at school or something, i can image it would take some hours/days.
... lesley