// getCheckpointRadius(checkpointid) float CCheckpointModuleNatives::GetRadius(EntityId checkpointId) { CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { return pCheckpoint->GetRadius(); } return -0.1f; }
// getCheckpointRadius(checkpointid) SQInteger CCheckpointNatives::GetRadius(SQVM * pVM) { EntityId checkpointId; sq_getentity(pVM, -1, &checkpointId); CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { sq_pushfloat(pVM, pCheckpoint->GetRadius()); return 1; } sq_pushbool(pVM, false); return 1; }