I've wrote some piece of code, just to try smallg suggestion about the new frozen commands.
local x1,y1,z1,angx,angy,angz
function transport_freeze_zone_init(e)
x1=0
y1=0
z1=0
anglex=0
angley=0
anglez=0
end
function transport_freeze_zone_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist<100 then
x1 = g_Entity[e]['x']
y1 = g_Entity[e]['y']
z1 = g_Entity[e]['z']
angx = g_Entity[e]['anglex']
angy = g_Entity[e]['angley']
angz = g_Entity[e]['anglez']
SetFreezePosition(x1,y1,z1)
SetFreezeAngle(angx,angy,angz)
TransportToFreezePosition()
IsInmobile = 0
ModulateSpeed(e,100)
MoveForward(e, 100)
else
IsInmobile=1
end
en
d
After testing, i've noticed it just freeze player/camera position, so you are no able to turn the camera view, and nor moving player; of course it does not move forward.
I've attached script to a platform and tried to move form point A thru point B, with not to avail.
So, I'm doing something wrong, or those commands are no intended for?
Even I've noticed there is not some sort of "UnFreezePos" command, so how can I achieve it.
Also I wonder what this commands does, and if they are already enabled.
LockCharacterPosition(e,v)
Lock a character in place. Parameter reserved for future use.
UnlockCharacterPosition(e,v)
UmLock a character. Parameter reserved for future use.
I they are intended to get the "same" like frozen comms does, so we can guess those are intended just for chars, and the other ones, just for entities?
Or those frozen comms just declare some zone as frozen zone, like a jail. IE:
Player goto jail>player get frozen>level re-star.
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics