1)Does anybody knows how client\server knows what actions to do when createAgent function is used?
I think it should have some executive file where the actions it provides are listed.
That is is not a standart scripting language so the actions each unique function provide have to be present in somewhere as for example Bis functions does.
As I understood Bis functions use SQF functions and are used to simplify the script, but SQF functions can not be understood by a computer and each SQF function has to be present as a SQS script for example.
2)How can I update a used value after unit has been created?
For instance we created a unit with such script:
so createAgent will get all values of citizen1 class. Can I somehow changed/update the value with a help of some function?
something like this:
So it will make the "citizen1" unit be the same but with "Soldier_Bodyguard_M4_PMC" model
Or maybe there is a way to somehow update the full class to any called from missionConfigFile
3)Can I use some script or functions to force greateAgent function to get values from missionConfigFile instead of ConfigFile?
4)Can I update the config file from mission file?
As I suppose config is loaded before the mission, can I somehow update the already loaded config while mission loading or after mission loaded?
May be it can be something like an addon but which will be called from mission after the mission is loaded?
I think it should have some executive file where the actions it provides are listed.
That is is not a standart scripting language so the actions each unique function provide have to be present in somewhere as for example Bis functions does.
As I understood Bis functions use SQF functions and are used to simplify the script, but SQF functions can not be understood by a computer and each SQF function has to be present as a SQS script for example.
2)How can I update a used value after unit has been created?
For instance we created a unit with such script:
Code:
_agent = createAgent ["citizen1", _originalPos, [], 10, "NONE"];
something like this:
Code:
_newmodel = missionConfigFile >> CfgVehicles >> Soldier_Bodyguard_M4_PMC >> model;
_agent "model" updateTO _newmodel;
Or maybe there is a way to somehow update the full class to any called from missionConfigFile
3)Can I use some script or functions to force greateAgent function to get values from missionConfigFile instead of ConfigFile?
4)Can I update the config file from mission file?
As I suppose config is loaded before the mission, can I somehow update the already loaded config while mission loading or after mission loaded?
May be it can be something like an addon but which will be called from mission after the mission is loaded?