Arma 3
37 ratings
Haralds AI Recruitment
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
File Size
Posted
Updated
125.985 KB
Oct 20, 2021 @ 1:11pm
Oct 14, 2024 @ 12:47pm
11 Change Notes ( view )

Subscribe to download
Haralds AI Recruitment

Description
Haralds Ai Recruitment
The aim is to be able to simply recruit Ai Units in the Base.
-respawn with timer
-recruit or disband units/groups
-easy to use module setup
-worked with all mods
-custom loadouts

-Works in multiplayer, but with restrictions.-
-If a unit is already being recruited by another player, that unit will no longer be available to other players.
-If a recruited unit respawns, the other player will receive a script error message, this is a visual issue.
Note: It's a locality problem with addAction , I had found a way to fix it, but that way the respawn position was overwritten each time it respawned. I can't find a solution for it.

1. Load this mod
2.Place some AI Units in your Base or any position of your choice
3.Place the Module and sync it with your placed Units
4.Select respawn time and the radius of the action
5.Run the Scenario
6. Go to your Unit, if you are in the selected radius perform the recruit with your middle Mouse Button.
7.You can Disband your recruited Units, if so they respawn, like they died.
34 Comments
tommi.1978 Apr 21 @ 10:53am 
By the way if you still are doing updates sometime, a box for running code on (re)spawned units would be useful imo. But thank you for the advice!
tommi.1978 Apr 21 @ 10:43am 
Works with mods now also . Might have been corrupted earlier.
tommi.1978 Apr 21 @ 10:16am 
Yes it is working now. when i am also testing without any mods. Must try again with the earlier modset also. Might be a conflict.
Harald_Bluthaar17  [author] Apr 21 @ 6:01am 
I just tested it quickly, everything still works for me. Are you sure that you have the current version? Try to subscribe to the mod again.
tommi.1978 Apr 21 @ 12:01am 
Hi! I sync units to the module, but now they disappear when i start the game. Earlier this mod worked fine.
Ralarm Nov 1, 2024 @ 12:25pm 
best recruitment mod
Harald_Bluthaar17  [author] Oct 14, 2024 @ 12:50pm 
The mod is at least fixed in SP! I found an issue in the respawn mechanic and fixed it. I'll be doing some MP testing with John from our amazing community over the next few days.
Greetings Harald.
Harald_Bluthaar17  [author] Oct 13, 2024 @ 2:54am 
Thank you for reporting the bugs. It looks like there were some engine changes that broke this mod. @John, I created a Git repo and sent you a friend request on Steam. I will add you as a Git collaborator if you give me your Git name.
John Oct 12, 2024 @ 10:54am 
Key Fixes:
Remote Execution:

The recruit action is now applied using remoteExec, which ensures that the addAction command is synchronized across clients in a multiplayer setting.
A helper function addRecruitAction is added, which uses remoteExec to apply the recruit action across all players after respawning.
Respawn Handling:

After the unit dies (waitUntil {not alive _unitToRecruit};), the script cleans up the unit (deleteVehicle _unitToRecruit) and then respawns a new one with the same settings.
The new unit is properly assigned back to _unitToRecruit after respawn, ensuring it can be recruited again.
Disbanding:

When a unit is disbanded, it leaves the player’s group and is deleted after sitting down. This is handled cleanly and avoids conflicts with recruiting the unit again later.
John Oct 12, 2024 @ 1:09am 
Do you have github to improve? Multiplayer server have some issues to fix. Ai not recruitable after disband or diissaper after respawn. This bug performs more often after latest arma3 update.