Jump to content
Sign in to follow this  
acog99

AI issues

Recommended Posts

I would like to place single, individual opfor on rooftops, prone so they can harass road intersections, etc. I was planning on using snipers and machinegunners.

Here is my problem. When I plant them on the roof, they wiggle around and fall off. Or they try and maneuver and fall off the roof.

Is there a init/script that will lock them in the prone position, and to stay on the rooftop NOT moving more then 90 degress.

And sometimes, they appear INSIDE the building and not on the roof at all.

I am totally stumped!

Help me please =)

Share this post


Link to post
Share on other sites

1. Make sure the rooftop is solid (soldiers do not sink into building)

2. If it´s not solid, setpos a palette to the desired location and setpos the soldier right above the palette. This way he will not sink into building.

3. Use this in init line of unit: this setunitpos "DOWN"; this disableAI "MOVE"; this setcombatmode "RED"

For some reasons I usually use setunitpos "MIDDLE" as the firing angle to the ground level is more convenient for the AI unit that way as the weapon can´t collide with the building itself.

I have no solution for limiting the angle though.

Share this post


Link to post
Share on other sites
1. Make sure the rooftop is solid (soldiers do not sink into building)

2. If it´s not solid, setpos a palette to the desired location and setpos the soldier right above the palette. This way he will not sink into building.

3. Use this in init line of unit: this setunitpos "DOWN"; this disableAI "MOVE"; this setcombatmode "RED"

For some reasons I usually use setunitpos "MIDDLE" as the firing angle to the ground level is more convenient for the AI unit that way as the weapon can´t collide with the building itself.

I have no solution for limiting the angle though.

Wonderful!

Thank you very much!

=)

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
Sign in to follow this  

×