Jump to content

Recommended Posts

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

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

Hi...

 

Oh - Reforger - my mistake - disregard.

 

Regards,
Scott

 

 

Share this post


Link to post
Share on other sites

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?

  • Like 1

Share this post


Link to post
Share on other sites
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×