Product Chat (Early Access) / transmit coordinates

Author
Message
VladimirPVV
5
Years of Service
User Offline
Joined: 2nd Jan 2019
Location: Russia - KHMAO - Nefteyugansk
Posted: 6th Oct 2022 22:28
when i bind the object to the player everything works ( SetPosition(e,g_PlayerPosX,g_PlayerPosY,g_PlayerPosZ) )
but as soon as the player leaves the zone, which for some reason turned out to be very small, the script stops working and the object disappears.
and I don’t understand what (zone) is, if this is the very zone that is allocated when creating a game map, then why is it so small as a result.

когда привязываю объект к плееру все работает ( SetPosition(e,g_PlayerPosX,g_PlayerPosY,g_PlayerPosZ) )
но как только игрок покидает зону, которая почему-то оказалась очень маленькой, скрипт перестает работать и объект исчезает.
и я не понимаю, что такое (зона), если это та самая зона, которая выделяется при создании игровой карты, то почему она в результате такая маленькая.

video https://youtu.be/v81zeny8K4w
P.V.V.

Attachments

Login to view attachments
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Oct 2022 10:51
Hard to tell without seeing the script but try making it always active.
Been there, done that, got all the T-Shirts!
PM
EyeFly
3
Years of Service
User Offline
Joined: 8th Nov 2021
Location: Oregon, United States
Posted: 7th Oct 2022 15:28 Edited at: 7th Oct 2022 15:33
I agree. Set it to always active. You're going to far away and the entity is unloading.
Keep Making Stuff You Enjoy.
VladimirPVV
5
Years of Service
User Offline
Joined: 2nd Jan 2019
Location: Russia - KHMAO - Nefteyugansk
Posted: 7th Oct 2022 17:54
Quote: "I agree. Set it to always active. You're going to far away and the entity is unloading."

Quote: "Hard to tell without seeing the script but try making it always active."


particles don't have that property, bummer
у частиц нет такого свойства, облом
P.V.V.
EyeFly
3
Years of Service
User Offline
Joined: 8th Nov 2021
Location: Oregon, United States
Posted: 7th Oct 2022 18:25 Edited at: 7th Oct 2022 18:39
Try this one. I added the always active command to the fpe. It should stay on now. I don't see the snow particle to test it. So I'm not 100% it will work. You won't see the Always Active toggle in the settings. It's permanently set to Always Active.

UPDATE: I just tested it with the default particle at 10,000% scale and way up in the sky. I ran like 2 straight minutes away from the particle and it was still active. You should be good with this particle.
Keep Making Stuff You Enjoy.

Attachments

Login to view attachments
EyeFly
3
Years of Service
User Offline
Joined: 8th Nov 2021
Location: Oregon, United States
Posted: 7th Oct 2022 18:49
If it still doesn't work, it's probably the other script you have running. I assume you have a script that attaches the particle to the player. It could be that the script that attaches the particle to the player is what needs to be set to always active. Because the particle is following the player, it should always be in range of the player. But the other script will be out of range if you go too far.
Keep Making Stuff You Enjoy.
VladimirPVV
5
Years of Service
User Offline
Joined: 2nd Jan 2019
Location: Russia - KHMAO - Nefteyugansk
Posted: 7th Oct 2022 19:25
Quote: "If it still doesn't work, it's probably the other script you have running. I assume you have a script that attaches the particle to the player. It could be that the script that attaches the particle to the player is what needs to be set to always active. Because the particle is following the player, it should always be in range of the player. But the other script will be out of range if you go too far."


I managed to do it using (ResetPosition)
Мне удалось это сделать, используя (ResetPosition)
ResetPosition(e,g_PlayerPosX,g_PlayerPosY,g_PlayerPosZ)

it turns out that the position of the object is fixed in the editor and the binding does not change its real position, for this you need to reset the position.
получается что положение объекта фиксируется в редакторе и привязка не меняет его реальное положение, для этого нужно сбросить положение.
P.V.V.

Login to post a reply

Server time is: 2024-12-21 18:09:15
Your offset time is: 2024-12-21 18:09:15