# How to take hold of fortnite tank in Code or Editor .. not the spawner, the actual tank!

**URL:** <https://forums.unrealengine.com/t/how-to-take-hold-of-fortnite-tank-in-code-or-editor-not-the-spawner-the-actual-tank/2250665>\
**Category:** Devices\
**Tags:** fortnite-creative, unreal-editor-for-fortnite, fortnite\
**Created:** [December 30, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-take-hold-of-fortnite-tank-in-code-or-editor-not-the-spawner-the-actual-tank/2250665 "2024-12-30T15:48:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmarWaheed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OmarWaheed](https://forums.unrealengine.com/u/OmarWaheed)\
**Post date:** [December 30, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/how-to-take-hold-of-fortnite-tank-in-code-or-editor-not-the-spawner-the-actual-tank/2250665/1 "2024-12-30T15:48:32Z")

</div>

Hey Engineers!

In UEFN  
How do I take hold of the tank parameters? particularly Tank health, damage, damage events…

Beyond that, can I change the tank? can I make my own turret and chassis and replace the existing ones? can I control the UI hologram surrounding the tank? can I change the health of the tank dynamically from the code?

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [December 30, 2024, 5:41pm UTC](https://forums.unrealengine.com/t/how-to-take-hold-of-fortnite-tank-in-code-or-editor-not-the-spawner-the-actual-tank/2250665/2 "2024-12-30T17:41:42Z")

</div>

Hello Omar, Welcome to the Forums.

There is a ‘Vehicle Health’ variable on the Tank Spawner that you can set. But as far as dynamically changing HP I think we’d need to see something like a ‘SetCurrentHealth’ function in the [API](https://dev.epicgames.com/documentation/en-us/uefn/verse-api/fortnitedotcom/devices/vehicle_spawner_tank_device) first

Edit: after seeing Mineblo’s post: It looks like a vehicle is 'Healtful" and can have it’s HP set.

Beyond that there is not much you can change. - For Damage, you might be able to use the ‘Damage Amplifier’ powerup?

“Changing the tank” would currently involve attaching a mesh particle (driven by Niagara) - But that would be janky and doubly janky in the context of a rotating turret.

There’s also no control over the in-tank UI. (Unless you’re adding your own UI overtop of things)

Even for other vehicles there is not much direct control (Top Speed, Acceleration) so I think the best we can hope for is some sort of future ‘Custom Vehicle’ support.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [December 30, 2024, 6:33pm UTC](https://forums.unrealengine.com/t/how-to-take-hold-of-fortnite-tank-in-code-or-editor-not-the-spawner-the-actual-tank/2250665/3 "2024-12-30T18:33:18Z")

</div>

The following functions can be used with the tank assuming you manage to get ahold of it’s `fort_vehicle` in verse

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/8/e68be009cbff42bcccbb46528f4f19a42b06502d.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/4/58406851b3f0e114b2ef6a5fc796355457b58e4e.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/5/f15c5f0216bc3753b901a5c2a699f4b8b7f55831.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/0/a30b32e35022c390c0f1d68f03391f8d3019b784.png)

As @Astrotronic mentioned you can’t really do anything else UI/Design wise aside from just spawning particles or something either with a niagara particle or just moving props using the tanks .GetTransform() “The latter can be a bit delayed”

---

<div class="post-metadata">

**Author:** ![OmarWaheed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OmarWaheed](https://forums.unrealengine.com/u/OmarWaheed)\
**Post date:** [December 31, 2024, 12:05am UTC](https://forums.unrealengine.com/t/how-to-take-hold-of-fortnite-tank-in-code-or-editor-not-the-spawner-the-actual-tank/2250665/4 "2024-12-31T00:05:37Z")

</div>

Thanks so much guys, very helpful information!
