// setCheckpointType(checkpointid, type) bool CCheckpointModuleNatives::SetType(EntityId checkpointId, int iType) { CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { pCheckpoint->SetType(iType); return true; } return false; }
// setCheckpointType(checkpointid, type) SQInteger CCheckpointNatives::SetType(SQVM * pVM) { EntityId checkpointId;; SQInteger iType; sq_getentity(pVM, -1, &checkpointId); sq_getinteger(pVM, -1, &iType); CCheckpoint * pCheckpoint = g_pCheckpointManager->Get(checkpointId); if(pCheckpoint) { pCheckpoint->SetType(iType); sq_pushbool(pVM, true); return 1; } sq_pushbool(pVM, false); return 1; }