Jump to content

ka3ant1p

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About ka3ant1p

  • Rank
    Rookie
  1. I think you have to add the definition of true first like this: _something = true; and then you change your code to while {_something} do. And make chack every x sec. If you do not the loop then toy can use if - else instead of while
  2. ka3ant1p

    createAgent function

    It seems no one knows? Than I have some more questions: 1)How can I update a used value after unit has been created? For instance we created a unit with such script: _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: _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 2)Can I use some script or functions to force greateAgent function to get values from missionConfigFile instead of ConfigFile? 3)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?
  3. Where can I find or see the executive file of createAgent function? I mean there should be some script wich tells what actions to do when used this function. I need as an example to create my own function which will use values not from the configFile, so I could control all parametrs of creating unit such as model, voice face and so on without making an addon.
  4. Hi all, Is there a way to somehow createAgent or CreateVehicle from missionConfigFile? I mean I don't want to make additional addon so created an hpp file which was properly included to the description.ext in those hpp i have some custom classes which use standart models and faces, just made some new units using textures and skins from existing ones. But I winder how can I create such unit? Thought it would be as easy as making custom loot tables but haven't found the description file for createAgent function, so don't know where should I change configFile to missionConfigFile to get values from my classes instead of basic ones.
×