Jump to content

He-Man

Developer
  • Posts

    808
  • Joined

  • Last visited

  • Days Won

    63

Posts posted by He-Man

  1. I am only using the default magazines (on Vehicle spawn).
    I have added a link in the config to the comand to get them as an array:
    https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgServicePoint.hpp#L82

    So spawn the Vehicle in Editor, get in as driver and run:
     

    magazinesAllTurrets (vehicle player)

    Then you get an array with the needed entries back...

    className: String - magazine class name
    turretPath: Array - turret path
    ammoCount: Number - how many rounds left in the magazine
    id: Number - id of the magazine object. The number starts at 10,000,000. This gives it about 7,600,000 possible ids before the number starts losing precision and cannot be used in scripts.
    creator: Number - owner / clientOwner of the PC that created the object

     

×
×
  • Create New...