How to make units "dumb"

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
vettim89
Posts: 3745
Joined: Fri Jul 13, 2007 11:38 pm
Location: Toledo, Ohio

How to make units "dumb"

Post by vettim89 »

AS I recall a few patches back it was introduced that a scenario designer could make individual units inactive as far as OODA loops and sensors to reduce the burden on the CPU. This was intended to help with large scenarios that would say perhaps a lot of "civilian" units. There was a thread describing how to do this at the time and for the life of me I cannot find it.

Could some one please link that thread or give me the unit property that needs to be edited?

Thanks in advance
"We have met the enemy and they are ours" - Commodore O.H. Perry
User avatar
Gunner98
Posts: 5998
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

RE: How to make units "dumb"

Post by Gunner98 »

One way of doing it for a complete side is to make them 'Blind' and turn off the 'Collective Responsibility'. This would work for a complete side like one that handles all your biologics or markers, even you civilians, but that might not work for all scenarios.

B
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: How to make units "dumb"

Post by KnightHawk75 »

Code: Select all

 unit.AI_DeterminePrimaryTarget_enabled = false
 unit.AI_EvaluateTargets_enabled = false 
 
https://www.matrixgames.com/forums/tm.a ... =&#4720573
User avatar
vettim89
Posts: 3745
Joined: Fri Jul 13, 2007 11:38 pm
Location: Toledo, Ohio

RE: How to make units "dumb"

Post by vettim89 »

ORIGINAL: KnightHawk75

Code: Select all

 unit.AI_DeterminePrimaryTarget_enabled = false
 unit.AI_EvaluateTargets_enabled = false 
 
https://www.matrixgames.com/forums/tm.a ... ey=�

Yup, that's the thread I was recalling but couldn't find
"We have met the enemy and they are ours" - Commodore O.H. Perry
Post Reply

Return to “Lua Legion”