feat(mobile): fix personal vehicle spawning far away (#978)
This commit is contained in:
parent
77e9c9e884
commit
04bae0bc93
@ -136,7 +136,11 @@ namespace big::mobile
|
|||||||
|
|
||||||
script::get_current()->yield(100ms);
|
script::get_current()->yield(100ms);
|
||||||
|
|
||||||
|
// only do this when spawn inside is enabled otherwise the vehicle will spawn relatively far away from players
|
||||||
|
if (g.clone_pv.spawn_inside)
|
||||||
|
{
|
||||||
*scr_globals::mechanic_global.at(936).as<int*>() = 1; // disable vehicle node distance check
|
*scr_globals::mechanic_global.at(936).as<int*>() = 1; // disable vehicle node distance check
|
||||||
|
}
|
||||||
*scr_globals::mechanic_global.at(923).as<int*>() = 1; // tell freemode to spawn our vehicle
|
*scr_globals::mechanic_global.at(923).as<int*>() = 1; // tell freemode to spawn our vehicle
|
||||||
*scr_globals::mechanic_global.at(982).as<int*>() = 0; // required
|
*scr_globals::mechanic_global.at(982).as<int*>() = 0; // required
|
||||||
*scr_globals::mechanic_global.at(979).as<int*>() = veh_idx;
|
*scr_globals::mechanic_global.at(979).as<int*>() = veh_idx;
|
||||||
|
Reference in New Issue
Block a user