0298
Revision as of 05:29, 29 July 2016 by Spaceeinstein (talk | contribs)
GET_NUM_OF_MODELS_KILLED_BY_PLAYER
- Description
- Gets the number of models killed by the player
- Syntax
- 0298: [var] = rampage_kills [int]
- 0298: get_player [player handle] destroyed_model [int] quantity_to [var]
- Parameter
- [player handle]
- The handle of the player
- [var]
- Variable to store the integer number
- [int]
- Valid model index as defined in the PEDS section or CARS section of the IDE file; also acceptable is the model's DFF name with a hash character
This opcode gets the number of ped and vehicle models killed by the player. The number of all models killed can be reset using opcode 0297. A maximum number of 65535 kills can be stored per model. The number can be carried over to other game sessions until you reset it.
Keywords
get, query, num, number, model, killed, by, player, rampage, kills, destroyed, quantity