MacTavish

  • Hero Member
  • Nicks( Kusanagi, Beztone, RATHORE )
  • Posts: 809
[How To Use] StandingOnObject
« on February 27th, 2015, 03:57 PM »
I've searched alot about this but not found any example to know the syntax

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 951
[How To Use] Re: StandingOnObject
« Reply #1, on February 27th, 2015, 04:10 PM »
Quote
CObject * CPlayer::StandingOnObject()
{
   int obj = functions->GetPlayerStandingOnObject( this->nPlayerId );
   if( obj < 1 )
      return NULL;
   else
   {
      this->m_standingOn.nObjectId = obj;
      return &this->m_standingOn;
   }
}
Seems like it just returns if a player is or not on an object.
But if you tried it, and it doesn't work, then you may be needed to use a function on the object first, so it can answer to your function.
The function may be this one:

Code: [Select]
object.SetReportingBumps( bool toReport )

Here is the vcmp squirrel source. You can find there the info you need, until the wiki will be completed.

MacTavish

  • Hero Member
  • Nicks( Kusanagi, Beztone, RATHORE )
  • Posts: 809
[How To Use] Re: StandingOnObject
« Reply #2, on February 27th, 2015, 04:20 PM »
I just wanna try as gudio said and posted video Here

It feels harder than i thought

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Luis_Labarca

  • Sr. Member
  • Hello :D
  • Posts: 300
[How To Use] Re: StandingOnObject
« Reply #3,  »
Quote from Sebastian on February 27th, 2015, 04:10 PM
Quote
CObject * CPlayer::StandingOnObject()
{
   int obj = functions->GetPlayerStandingOnObject( this->nPlayerId );
   if( obj < 1 )
      return NULL;
   else
   {
      this->m_standingOn.nObjectId = obj;
      return &this->m_standingOn;
   }
}
Seems like it just returns if a player is or not on an object.
But if you tried it, and it doesn't work, then you may be needed to use a function on the object first, so it can answer to your function.
The function may be this one:

Code: [Select]
object.SetReportingBumps( bool toReport )

Here is the vcmp squirrel source. You can find there the info you need, until the wiki will be completed.
hello friend could you pass a better explained example @Sebastian ;D
My server ...:: RPG ::...
IP: 149.56.143.129:8195