Ba set trap

From Unofficial QEdit Wiki Guide
Revision as of 13:34, 4 March 2021 by Kayak (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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