I can't resupply from this box

My team is team 1 and the box is also team 1


What should I do to make supply available?

1 Like

Probably better to create base_fortification_build with +tutorial_ammunition_box_a postfix. Firstly you need to add postfixs in create entity menu (edit template postfix field that a bit higher close button).
image
And then create base_fortification_build entity and set team in properties.

You also can edit useful_box__maxUseCount to increase ammo amount that you can pickup before this box will automatically destroyed.

3 Likes

Is there any way to make something like a truck an ammo box aswell?
Like the nissan 80
I tried it with the postfix but it turned into a regular ammo box

yes

first set the postfixes,

( the text above " close ")

aka,

+tutorial_ammunition_box_a+(name of the vehicle that you want.

then spawn the " base_fortification_build "

however, you need to set the battle area first otherwise the vehicle will blow up because it’s outside the area.

or, you can instead the out of bond methods. which it wont get destroyed out of areas, add this over entities.blk:

out_of_bounds_fortification_build{
  _use:t="fortification_builder_info"
  _use:t="fortification_ai_target"
  builder_info__team:i=3
}

and place this instead of " base_fortification_build "

you can use medkits as well by just replacing the tutorial[…] with:

placed_medic_box_item

if you then want to make everything inside entities, you can use this other code:

// Way2. 
// define your own new named template, 
// you can find it in the entities list in the editor
medic_box_for_team2{
  _extends:t="base_ri_building"
  _extends:t="placeable_item_in_world"
  _extends:t="placed_medic_box_item"
  ri_extra__name:t="dummy_wooden_box_a"

  useful_box__useCount:i=-1
  useful_box__maxUseCount:i=999999
  placeable_item__ownerTeam:i=2
  team:i=2
}

medical_gaz_67{
  _extends:t="gaz_67"

  "attach_decorators__entities:list<eid>"{
  }

  // you can also do this by attach_decorators__templates
  "attach_decorators__templates:array"{
    "templates:object"{
      relativeTm:m=[[1.0, 0.0, 0.0] [0.0, 1.0, 0.0] [0.0, 0.0, 1.0] [1.6, 0.0, 0.0]]
      // template:t="placed_medic_box_item+placeable_item_in_world+base_ri_building"
      template:t="medic_box_for_team2"
      nodeName:t="emtr_fire_engine" 
      // emtr_fire_engine, This is a better node that I found without initial rotation, which is easy to adjust the position of various decorations
    }
  }
}
2 Likes

Thanks!

1 Like