Karmafied

AI init scripts

4 posts in this topic

Does anyone know of a script that can be added to the unit's init field that would determine it's combatmode/behaviour? And maybe a patrol radius as well.

I am wondering if it's possible to add it directly to the mission.sqm.

class Item46
        {
            side="GUER";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={20475.467,43.27887,23683.137};
                    special="NONE";
                    id=46;
                    side="EAST";
                    vehicle="U_BG_Guerilla1_1";
                    player="PLAY CDG";
                    leader=1;
                    skill=0.60000002;
                    init= ???

                };
            };
        };

Share this post


Link to post
Share on other sites
Advertisement

you can but note:
init field gets executed on every JIP player.

Share this post


Link to post
Share on other sites

Hi @Grim,

Please forgive my ignorance here. I don't exactly know what that means: JIP player. Join-in-Progress, sure, but let's say the only 3 players that join do so at (roughly) the same time... Would this work for us? Or are you saying that the AI's behavior will be different for each player?

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.