// setCheckpointRadius(checkpointid, radius) bool CCheckpointModuleNatives::SetRadius(EntityId checkpointId, float fRadius) { CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { pCheckpoint->SetRadius(fRadius); return true; } return false; }
// setCheckpointRadius(checkpointid, radius) SQInteger CCheckpointNatives::SetRadius(SQVM * pVM) { EntityId checkpointId; float fRadius; sq_getentity(pVM, -2, &checkpointId); sq_getfloat(pVM, -1, &fRadius); CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { pCheckpoint->SetRadius(fRadius); sq_pushbool(pVM, true); return 1; } sq_pushbool(pVM, false); return 1; }