Jump to content

ReplenishAmmo, need help from 1C


Arzok

Recommended Posts

I would like to make a trigger to resupply units near a supply truck or a supply building.

I saw the new instruction "ReplenishAmmo " in the mission trigger reference help.

--------------

ReplenishAmmo (objectType , objectVariable , [ ammoGroup ] )

It replenishes the ammo loadout for the ammo types from the list ammoGroup

ammoGroup can be:

HE

AP

SMOKE

Example:

ReplenishAmmo ( UNIT , 1 , HE, SMOKE )

--------------

I tried with the 76mm obr.

ReplenishAmmo ( UNIT , 1 , HE ) =replenish ammo HEAT

ReplenishAmmo ( UNIT , 1 , x , HE ) =replenish ammo HE

ReplenishAmmo ( UNIT , 1 , x , x , HE ) =replenish ammo SMOKE

ReplenishAmmo ( UNIT , 1 , HE , HE , HE ) =replenish ammo SMOKE, HE and HEAT

You can replace HE by AP or SMOKE, same result :confused:

you can replace x by 1, any number, letters without meanings : same result.

And replennnish ammo means that the gun will have three times more HE shells (for exemple, if there is at the beginning 20 shells, after the instruction, there will be 60 shells :confused:).

And I have not succeed to replennish AP shell ( or APCR...)

Can you provide some help ? :)

Link to comment
Share on other sites

  • 2 weeks later...

Sorry i can't help. I haven't kursk. I think you have already tried to change these lines in many different ways:

es ReplenishAmmo ( UNIT , 1 , x , x , x , HE )

ReplenishAmmo ( UNIT , 1 , x , x , HE , HE )

ReplenishAmmo ( UNIT , 1 , HE , HE , HE , HE ).

Maybe Sneaksie knows how to do that or can ask developers.

Link to comment
Share on other sites

×
×
  • Create New...