@@ -1157,7 +1157,7 @@ int CLuaElementDefs::setElementAttachedOffsets ( lua_State* luaVM )
1157
1157
1158
1158
if ( !argStream.HasErrors () )
1159
1159
{
1160
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1160
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1161
1161
1162
1162
if ( CStaticFunctionDefinitions::SetElementAttachedOffsets ( pElement, vecPosition, vecRotation ) )
1163
1163
{
@@ -1496,7 +1496,7 @@ int CLuaElementDefs::setElementID ( lua_State* luaVM )
1496
1496
1497
1497
if ( !argStream.HasErrors () )
1498
1498
{
1499
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1499
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1500
1500
1501
1501
if ( CStaticFunctionDefinitions::SetElementID ( pElement, strId ) )
1502
1502
{
@@ -1528,7 +1528,7 @@ int CLuaElementDefs::setElementData ( lua_State* luaVM )
1528
1528
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine ( luaVM );
1529
1529
if ( pLuaMain )
1530
1530
{
1531
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1531
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1532
1532
1533
1533
if ( strKey.length () > MAX_CUSTOMDATA_NAME_LENGTH )
1534
1534
{
@@ -1566,7 +1566,7 @@ int CLuaElementDefs::removeElementData ( lua_State* luaVM )
1566
1566
CLuaMain* pLuaMain = m_pLuaManager->GetVirtualMachine ( luaVM );
1567
1567
if ( pLuaMain )
1568
1568
{
1569
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1569
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1570
1570
1571
1571
if ( strKey.length () > MAX_CUSTOMDATA_NAME_LENGTH )
1572
1572
{
@@ -1613,7 +1613,7 @@ int CLuaElementDefs::setElementMatrix ( lua_State* luaVM )
1613
1613
// Verify the arguments
1614
1614
if ( !argStream.HasErrors ( ) )
1615
1615
{
1616
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1616
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1617
1617
1618
1618
if ( CStaticFunctionDefinitions::SetElementMatrix ( pElement, matrix ) )
1619
1619
{
@@ -1641,7 +1641,7 @@ int CLuaElementDefs::setElementParent ( lua_State* luaVM )
1641
1641
1642
1642
if ( !argStream.HasErrors () )
1643
1643
{
1644
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1644
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1645
1645
1646
1646
if ( CStaticFunctionDefinitions::SetElementParent ( pElement, pParent ) )
1647
1647
{
@@ -1681,7 +1681,7 @@ int CLuaElementDefs::setElementPosition ( lua_State* luaVM )
1681
1681
1682
1682
if ( !argStream.HasErrors () )
1683
1683
{
1684
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1684
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1685
1685
1686
1686
// Set the position
1687
1687
if ( CStaticFunctionDefinitions::SetElementPosition ( pElement, vecPosition, bWarp ) )
@@ -1711,7 +1711,7 @@ int CLuaElementDefs::setElementRotation ( lua_State* luaVM )
1711
1711
1712
1712
if ( !argStream.HasErrors () )
1713
1713
{
1714
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1714
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1715
1715
1716
1716
// Set the rotation
1717
1717
if ( CStaticFunctionDefinitions::SetElementRotation ( pElement, vecRotation, rotationOrder, bNewWay ) )
@@ -1740,7 +1740,7 @@ int CLuaElementDefs::OOP_setElementRotation ( lua_State* luaVM )
1740
1740
1741
1741
if ( !argStream.HasErrors () )
1742
1742
{
1743
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1743
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1744
1744
1745
1745
CMatrix matrix;
1746
1746
@@ -1791,7 +1791,7 @@ int CLuaElementDefs::setElementVelocity ( lua_State* luaVM )
1791
1791
1792
1792
if ( !argStream.HasErrors () )
1793
1793
{
1794
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1794
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1795
1795
1796
1796
// Set the velocity
1797
1797
if ( CStaticFunctionDefinitions::SetElementVelocity ( pElement, vecVelocity ) )
@@ -1820,7 +1820,7 @@ int CLuaElementDefs::setElementVisibleTo ( lua_State* luaVM )
1820
1820
1821
1821
if ( !argStream.HasErrors () )
1822
1822
{
1823
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1823
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1824
1824
1825
1825
if ( CStaticFunctionDefinitions::SetElementVisibleTo ( pElement, pReference, bVisible ) )
1826
1826
{
@@ -1849,7 +1849,7 @@ int CLuaElementDefs::setElementInterior ( lua_State* luaVM )
1849
1849
1850
1850
if ( !argStream.HasErrors () )
1851
1851
{
1852
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1852
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1853
1853
1854
1854
unsigned char ucInterior = static_cast < unsigned char > ( uiInterior );
1855
1855
if ( CStaticFunctionDefinitions::SetElementInterior ( pElement, ucInterior, bSetPosition, vecPosition ) )
@@ -1890,7 +1890,7 @@ int CLuaElementDefs::setElementDimension ( lua_State* luaVM )
1890
1890
1891
1891
if ( !argStream.HasErrors () )
1892
1892
{
1893
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1893
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1894
1894
1895
1895
if ( bMakeVisibleInAllDimensions )
1896
1896
{
@@ -1944,7 +1944,7 @@ int CLuaElementDefs::attachElements ( lua_State* luaVM )
1944
1944
1945
1945
if ( !argStream.HasErrors () )
1946
1946
{
1947
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1947
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1948
1948
1949
1949
if ( CStaticFunctionDefinitions::AttachElements ( pElement, pAttachedToElement, vecPosition, vecRotation ) )
1950
1950
{
@@ -1971,7 +1971,7 @@ int CLuaElementDefs::detachElements ( lua_State* luaVM )
1971
1971
1972
1972
if ( !argStream.HasErrors () )
1973
1973
{
1974
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
1974
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
1975
1975
1976
1976
if ( CStaticFunctionDefinitions::DetachElements ( pElement, pAttachedToElement ) )
1977
1977
{
@@ -1998,7 +1998,7 @@ int CLuaElementDefs::setElementAlpha ( lua_State* luaVM )
1998
1998
1999
1999
if ( !argStream.HasErrors () )
2000
2000
{
2001
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
2001
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
2002
2002
2003
2003
if ( CStaticFunctionDefinitions::SetElementAlpha ( pElement, ucAlpha ) )
2004
2004
{
@@ -2050,7 +2050,7 @@ int CLuaElementDefs::setElementHealth ( lua_State* luaVM )
2050
2050
2051
2051
if ( !argStream.HasErrors () )
2052
2052
{
2053
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
2053
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
2054
2054
2055
2055
if ( CStaticFunctionDefinitions::SetElementHealth ( pElement, fHealth ) )
2056
2056
{
@@ -2077,7 +2077,7 @@ int CLuaElementDefs::setElementModel ( lua_State* luaVM )
2077
2077
2078
2078
if ( !argStream.HasErrors () )
2079
2079
{
2080
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
2080
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
2081
2081
2082
2082
if ( CStaticFunctionDefinitions::SetElementModel ( pElement, usModel ) )
2083
2083
{
@@ -2130,7 +2130,7 @@ int CLuaElementDefs::setElementCollisionsEnabled ( lua_State* luaVM )
2130
2130
2131
2131
if ( !argStream.HasErrors () )
2132
2132
{
2133
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
2133
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
2134
2134
2135
2135
if ( CStaticFunctionDefinitions::SetElementCollisionsEnabled ( pElement, bEnable ) )
2136
2136
{
@@ -2157,7 +2157,7 @@ int CLuaElementDefs::setElementFrozen ( lua_State* luaVM )
2157
2157
2158
2158
if ( !argStream.HasErrors () )
2159
2159
{
2160
- VerifyPlayerIsJoinedUsage ( luaVM, pElement );
2160
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pElement );
2161
2161
2162
2162
if ( CStaticFunctionDefinitions::SetElementFrozen ( pElement, bFrozen ) )
2163
2163
{
@@ -2259,7 +2259,7 @@ int CLuaElementDefs::setElementCallPropagationEnabled ( lua_State* luaVM )
2259
2259
2260
2260
if ( !argStream.HasErrors () )
2261
2261
{
2262
- VerifyPlayerIsJoinedUsage ( luaVM, pEntity );
2262
+ LogWarningIfPlayerHasNotJoinedYet ( luaVM, pEntity );
2263
2263
2264
2264
if ( CStaticFunctionDefinitions::SetElementCallPropagationEnabled ( pEntity, bEnable ) )
2265
2265
{
0 commit comments