# Limit Specific Structure Placement to .. maybe 4?

**URL:** <https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [April 16, 2017, 2:10am UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032 "2017-04-16T02:10:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_01117074](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_01117074](https://forums.unrealengine.com/u/anonymous_user_01117074)\
**Post date:** [April 16, 2017, 2:10am UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/1 "2017-04-16T02:10:41Z")

</div>

Question above:

Its when i want a structure, Table, Box etc to check for same structure in range and prevent placement when there are to many (like 4 or more)

Is this possible with the Graph ? Iam new with the Graph so please be carful 😃

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [April 16, 2017, 3:28pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/2 "2017-04-16T15:28:14Z")

</div>

Yes. Quite easy really. On begin play do a get all actors of class (your actor), add a numerical check then destroy actor if it is more than specified amount

Something like this should work.

 ![de723a3a17e605cb100617e3aa3edaf5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/0/0d0c8a71cccb0636c2a2a8000d5266a7903bdca7.png)

You may want to add some sort of self check on there or increase the amount by 1 because it WILL count the one you are in the process of placing  
You probably also want to add a “IsPreviewStructure” check after the switch has auth node since while in preview mode it will only count any actors within stasis range. It checks the entire server on begin play after final placement

 ![30579c63fef4645c8f1acefff02fc41b.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/d/2ad79bf9fcb077548333395836467b998de4bd31.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_01117074](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_01117074](https://forums.unrealengine.com/u/anonymous_user_01117074)\
**Post date:** [April 29, 2017, 11:38pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/3 "2017-04-29T23:38:56Z")

</div>

Thank you,i will check on that. But this effects only the Tribe or Player ? Because i dont want that a tribe places 4 and nobody else can place this structure later 🙂

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [May 1, 2017, 12:45am UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/4 "2017-05-01T00:45:40Z")

</div>

Add a targeting team comparison then it will be 4 per tribe

---

<div class="post-metadata">

**Author:** ![JohannG49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohannG49](https://forums.unrealengine.com/u/JohannG49)\
**Post date:** [June 5, 2017, 4:47pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/5 "2017-06-05T16:47:32Z")

</div>

> [@P0k3r;702176](#):
>
> Add a targeting team comparison then it will be 4 per tribe

hi, i’m doing something similar and i’ve got questions on what you set… why the switch authority ?  
How does targetnig team worked, caus when i test it i’m not in traibe but it find a team so do i have to use something else like a cast to shooter player and get tribe to make the struct only buildable ince per tribe? Also will there not be an issue if players use fuse tribe?

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [June 5, 2017, 8:25pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/6 "2017-06-05T20:25:25Z")

</div>

> [@JohannG49;719809](#):
>
> hi, i’m doing something similar and i’ve got questions on what you set… why the switch authority ?  
> How does targetnig team worked, caus when i test it i’m not in traibe but it find a team so do i have to use something else like a cast to shooter player and get tribe to make the struct only buildable ince per tribe? Also will there not be an issue if players use fuse tribe?

Authority is called when something executes on the server. This is stuff that you need the server to do.

Targeting team is different from tribe id, that’s why you’re getting one outside of a tribe.

The logic is only used when a player is placing the structure. If they place then merge, no checks will be made on how many the resulting tribe owns.

---

<div class="post-metadata">

**Author:** ![JohannG49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohannG49](https://forums.unrealengine.com/u/JohannG49)\
**Post date:** [June 6, 2017, 6:38am UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/7 "2017-06-06T06:38:15Z")

</div>

i put a “is preview structure” test so i can have different calling of “event begin play” but all my casts fail due to get owner, owner controller,… i test all that i can ^^’ return none in both call of event

I’ll try to play with the event on changing team to see if i can do something when the tribe merge

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [June 10, 2017, 6:52pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/8 "2017-06-10T18:52:21Z")

</div>

> [@JohannG49;720112](#):
>
> i put a “is preview structure” test so i can have different calling of “event begin play” but all my casts fail due to get owner, owner controller,… i test all that i can ^^’ return none in both call of event
> 
> I’ll try to play with the event on changing team to see if i can do something when the tribe merge

There technically is no owner when the item is in preview mode since it is not actually placed yet. Preview only fires on client so the server does not yet know who owns it.

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [June 10, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/9 "2017-06-10T20:56:35Z")

</div>

> [@JohannG49;720112](#):
>
> I’ll try to play with the event on changing team to see if i can do something when the tribe merge

You could be cheesy and start a looping event that executes like every 15 minutes or whatever to check how many the tribe owns.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e29702de](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e29702de](https://forums.unrealengine.com/u/anonymous_user_e29702de)\
**Post date:** [February 15, 2018, 3:07pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/10 "2018-02-15T15:07:17Z")

</div>

Can someone post an example of this with the targeting team comparison? This is exactly what i need except i dont know where to add in the comparison. Thx.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/limit-specific-structure-placement-to-maybe-4/90032/11 "2022-03-09T21:34:18Z")

</div>


