I want to know if anyone knows anything more about the SCAR function Cpu_DoString.
Official description:
Runs a string on an AI player
Void Cpu_DoString( PlayerID player, String s, )
I added a little about what I thought it implied to the wiki:
http://www.relic.com...ons/CpuDoString
However I do not know the specifics on how this works.
It could be useful for singleplayer AI - since the SCAR script ditacts the difficulty, and activation (or lack of) the CPU AI files, and can interject some commands and stop the AI from using some units.
This, in combination with the other things, could allow a specific map to have, for a race, a specific build pattern or something - if the string is activated when the AI is enabled, it could load new files or something.
But I'm not entirely sure how it works. My example is:
-- Possible example. Run this on an AI player to do the same thing as Cpu_CounterVictoryObj Cpu_DoString(World_GetPlayerAt(1), "CpuManager:CounterVictoryObj()")
Which may not actually be a correct use of it.
can anyone either be able to test is or perhaps say what it could be? Or provide a better example of a function to execute which'll provide feedback (or how to add a simple one to the default.ai file perhaps) when executed via. this so I can test this?
Thanks for any info guys!