Difference between revisions of "Ba set trap"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>ba_set_trap </span>R1, R2</span> * xxxxxxxx (DWORD) = Hex value to be used t...")
(No difference)

Revision as of 13:34, 4 March 2021

Syntax

Syntax: ba_set_trap R1, R2

  • xxxxxxxx (DWORD) = Hex value to be used to determine how many traps the players have

Use

Used to set the amount of traps each player has. (You need to use ba_set_trapmenu to allow this opcode to work)

Example


         leti R1, 00000000 //Makes register 1 equal 00000000.
         leti R2, 00000003 //Makes register 2 equal 00000003.
         ba_set_trap R1 //Starts the player with 3 damage traps.
         ret 

Also See

ba_set_trapmenu