some questions about createAgent and other SQF functions

ka3ant1p

Member
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:
Code:
_agent = createAgent ["citizen1", _originalPos, [], 10, "NONE"];
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:
Code:
_newmodel = missionConfigFile >> CfgVehicles >> Soldier_Bodyguard_M4_PMC >> model;
_agent "model" updateTO _newmodel;
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?
 
All classes are defined, in config files, like .cpp, .bin, .hpp etc. you can edit this classes in these configs, or add some new if you want.
But they only loaded once each restart, i don't believe you can update/change them on a running maschine.
 
Back
Top