ziipzaaapM16A4 1 Posted October 24 Hello, I usually work with C# and program ai mods for GTA V. i did a few arma 3 missions but thats all i did with arma "modding". Im having trouble to understand the general envoirement. Therefore i have a few questions - getting the vehicle, the character is in? [ANSWERED] => player.GetParent(); - How to Get Position of an Character. [ANSWERED] => player.GetOrigin(); - how to Perform actions such as GetInVehicle, MoveTo And PerformBandaging/AdministerSaline <====== [STILL UNKNOWN] (Help Needed) I value your time so if you want to only provide me with example code i would be also very happy because most of the code available does not contain Tasking AI via Script Share this post Link to post Share on other sites
scottb613 285 Posted October 24 Hi... To do any coding in ArmA - you really want the syntax highlighter for Notepad++ - it will make your life far better. Notepad++ ArmA Syntax Highlighter private _vehicle = vehicle player; // private _playerPos = getPos player; // private _vehicle = vehicle player; { if (_x != player) then { _x assignAsCargo _vehicle; _x moveInCargo _vehicle; }; } forEach units group player; Regards, Scott Share this post Link to post Share on other sites
scottb613 285 Posted October 24 Hi... Oh - Reforger - my mistake - disregard. Regards, Scott Share this post Link to post Share on other sites
ziipzaaapM16A4 1 Posted October 24 Thank you anyways Scott, Most of this i actually found out but Im still struggling with the Group or singe AI Tasking via Script. So i know how to Spawn via SpawnPrefabs but i still don't unterstand how i can use the (SCR_)AIGetInVehicle or (SCR_)AIHealActivity or move to waypoint. These 3 are actually necessary for me and it seems like nobody has ever done commanding ai via script and published it. Can anyone Help? 1 Share this post Link to post Share on other sites
Depechivo 0 Posted November 3 This is Arma Reforger section. Arma3 uses SQF scripts and Arma Reforger uses Enforce Scripts. https://community.bistudio.com/wiki/Arma_Reforger:From_SQF_to_Enforce_Script Share this post Link to post Share on other sites
Depechivo 0 Posted November 3 On 10/25/2024 at 1:54 AM, ziipzaaapM16A4 said: Thank you anyways Scott, Most of this i actually found out but Im still struggling with the Group or singe AI Tasking via Script. So i know how to Spawn via SpawnPrefabs but i still don't unterstand how i can use the (SCR_)AIGetInVehicle or (SCR_)AIHealActivity or move to waypoint. These 3 are actually necessary for me and it seems like nobody has ever done commanding ai via script and published it. Can anyone Help? SCR_AIGroupClass.AddWaypointsDynamic Share this post Link to post Share on other sites