File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Server/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -2363,7 +2363,24 @@ int CLuaVehicleDefs::SetVehicleRespawnPosition(lua_State* luaVM)
2363
2363
argStream.ReadUserData (pElement);
2364
2364
argStream.ReadVector3D (vecPosition);
2365
2365
2366
- if (!argStream.HasErrors ())
2366
+ if (argStream.NextIsVector3D ())
2367
+ {
2368
+ CVector vecRotation;
2369
+ argStream.ReadVector3D (vecRotation);
2370
+
2371
+ if (!argStream.HasErrors ())
2372
+ {
2373
+ if (CStaticFunctionDefinitions::SetVehicleRespawnPosition (pElement, vecPosition) &&
2374
+ CStaticFunctionDefinitions::SetVehicleRespawnRotation (pElement, vecRotation))
2375
+ {
2376
+ lua_pushboolean (luaVM, true );
2377
+ return 1 ;
2378
+ }
2379
+ }
2380
+ else
2381
+ m_pScriptDebugging->LogCustom (luaVM, argStream.GetFullErrorMessage ());
2382
+ }
2383
+ else if (!argStream.HasErrors ())
2367
2384
{
2368
2385
if (CStaticFunctionDefinitions::SetVehicleRespawnPosition (pElement, vecPosition))
2369
2386
{
You can’t perform that action at this time.
0 commit comments