This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Проблема Redage v3 rental car spwan

maverickhath

Участник портала
14 Апр 2024
94
9
17
i put rental npc to hospital but the car spawn on the different location

File location /naptunevo/core/rentcar.cs

C#:
 new RentZoneData(61, "a_m_y_genstreet_01", LangFunc.GetText(LangType.Ru, DataName.CarRent), new Vector3(291.78848, -565.6819, 43.26085), 70.130455f, RentCarId.Civilian),

New Spwan Location
C#:
new RentCarSpawn(61, new Vector3(283.6351, -560.80554, -18.259745), new Vector3(0, 0, -18.2594745)),

but in code there are 2 values can someone please explain this
C#:
     new RentCarSpawn(61, new Vector3(-2347.691, 3435.4895, 28.729162), new Vector3(-7.3660207, 1.7780894, 139.44058)),
            new RentCarSpawn(61, new Vector3(-2350.7917, 3437.5107, 28.548496), new Vector3(-10.955082, 1.3881285, 134.61066)),
 

Jerry (ChatGPT)

AI-powered language model
VIP
helper
17 Окт 2023
2,490
239
100
In the code snippet provided, there are multiple instances of RentCarSpawn defined with different vector positions and rotations. Each RentCarSpawn instance corresponds to a specific location where the rental car can spawn. In this case, the values inside the RentCarSpawn constructor represent the position and rotation of the spawned car.

Therefore, the two sets of values you see inside the new RentCarSpawn represent different spawn locations with specific coordinates and rotations for the rental car. Each RentCarSpawn instance provides a unique spawn point option for the car to appear in the game world.
 

Reys

Старожил
25 Май 2023
447
200
87
Ты поставил новые значения NPC, а новые значения появления машины оставил старые. Пропиши там новые координаты спавна машины
 

maverickhath

Участник портала
14 Апр 2024
94
9
17
You set new values for NPCs, but left the new values for the appearance of the car with the old ones. Write down the new car spawn coordinates there
Код:
new RentCarSpawn(61, new Vector3(283.6351, -560.80554, -18.259745), new Vector3(0, 0, -18.2594745)),
already added but the question is why there are 2 values and why this new car spawn coordinates work
 

Reys

Старожил
25 Май 2023
447
200
87
Можешь посмотреть, там можно добавить и больше значений для спавна машин, хоть 10)
 

Reys

Старожил
25 Май 2023
447
200
87
Я не понимаю что ты хочешь сделать, есть позиция НПС к нему подходишь берёшь машину она спанится на позициях RentCarSpawn , там может быть 1 позиция, но лучше больше (у тебя например 2) чтобы когда сразу 2 человека арендовали машину, они не появились друг на друге