I've searched alot about this but not found any example to know the syntax
[How To Use] StandingOnObject
« on February 27th, 2015, 03:57 PM »
CObject * CPlayer::StandingOnObject()
{
int obj = functions->GetPlayerStandingOnObject( this->nPlayerId );
if( obj < 1 )
return NULL;
else
{
this->m_standingOn.nObjectId = obj;
return &this->m_standingOn;
}
}
object.SetReportingBumps( bool toReport )
Seems like it just returns if a player is or not on an object.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;
}
}
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.