Difference between revisions of "Get number of player1"
From Unofficial QEdit Wiki Guide
Japanaman2 (Talk | contribs) |
Japanaman2 (Talk | contribs) |
||
Line 8: | Line 8: | ||
If 1 player is in the room the register used will equal 00000001. | If 1 player is in the room the register used will equal 00000001. | ||
− | If 2 | + | If 2 players are in the room the register used will equal 00000002. |
− | If 3 | + | If 3 players are in the room the register used will equal 00000003. |
− | If 4 | + | If 4 players are in the room the register used will equal 00000004. |
==Use== | ==Use== |
Latest revision as of 09:23, 30 April 2013
Syntax
Syntax: get_number_of_player1 register
- register = Register to store the number of players in the room when the op code is encountered.
Possible values of the register used.
If 1 player is in the room the register used will equal 00000001.
If 2 players are in the room the register used will equal 00000002.
If 3 players are in the room the register used will equal 00000003.
If 4 players are in the room the register used will equal 00000004.
Use
Used to sore the number of players in the room.
Example
100: get_number_of_player1 R1 //Stores the number of players in the room in register 1 when the op code is encountered.
ret