Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO1 Modding Support & Discussion
  3. Spawn with Five trap piece

Spawn with Five trap piece

Scheduled Pinned Locked Moved BO1 Modding Support & Discussion
2 Posts 1 Posters 63 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Nibbler Dooundefined Offline
    Nibbler Dooundefined Offline
    Nibbler Doo
    wrote on last edited by
    #1

    Is there a command similar to giveWeapon such that I can give myself the five trap piece in hand when I spawn in?

    1 Reply Last reply
    0
    • Nibbler Dooundefined Offline
      Nibbler Dooundefined Offline
      Nibbler Doo
      wrote on last edited by
      #2

      Couldn't figure out how tospawn with them but did figure out how to start with them built

      enable_traps_five()
      {
      level waittill( "fade_introblack" );
      traps_array = getentarray( "trigger_battery_trap_fix", "targetname" );

      for ( i = 0; i < traps_array.size; i++ )
      {
      
      	get_players()[0]._trap_piece = 1;
      	traps_array[i] build_trap();
      
      }
      

      }

      1 Reply Last reply
      0

      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate