![]() |
CTP2 Bureau The Modding Knowledgebase |
|
Apolyton CTP2 forums Apolyton CTP2 archives Source Code Project SVN |
![]() |
Search the site: |
SLIC-Reference :
|
Arguments: | objectname | Type: | void |
Kill all messages from the named object |
SFN_ERROR Slic_KillMessages::Call(SlicArgList *args) { PLAYER_INDEX recip; if(args->Count() != 2) return SFN_ERROR_NUM_ARGS; if(!args->GetPlayer(0, recip)) return SFN_ERROR_TYPE_ARGS; if(args->m_argValue[1].m_type != SA_TYPE_SEGMENT) return SFN_ERROR_TYPE_ARGS; if(!(args->m_argValue[1].m_segment)) { SlicSymbolData *sym = args->m_argValue[1].m_symbol; if(sym) { strcpy(g_missingSegment, sym->GetName()); } else { strcpy(g_missingSegment, "???"); } return SFN_ERROR_NOT_SEGMENT; } sint32 i; if(recip < 0 || recip >= k_MAX_PLAYERS || !g_player[recip]) return SFN_ERROR_OK; for(i = g_player[recip]->m_messages->Num() - 1; i >= 0; i--) { if(g_player[recip]->m_messages->Access(i).AccessData()->GetSlicSegment() == args->m_argValue[1].m_segment) { g_player[recip]->m_messages->Access(i).Kill(); } } return SFN_ERROR_OK; } |
Using this form you may add your own observations concerning the above item, e.g. additional hints for usage, limitations, oddities etc. Please note this is not the place for asking questions or carrying out discussions about modding - please refer to the Apolyton CTP2 Modification Forum on that purpose.
*) Required fields
![]() |
This site is currently maintained by: BureauBert (Webmaster) Maquiladora (Manager) Legal Notice: Legal Notice Statistics: 107654 unique users since 02.05.2004 (» Site Statistics) Hosted by: WebhostOne |