PDA

View Full Version : Classname for the ammo of all Armoured Russian vehicles



dale0404
Jun 6 2009, 22:22
Gents, I am creating a training map and I need the classnames for the ammo types that are used by the Russians.

What I want to do is create a 'range' where the enemy (Russia) shoot back but not using their main guns, so to that end I want to remove the ammo they use so they can only shoot back using the machine guns / secondary guns.

Cheers

Dale

DaveP
Jun 6 2009, 22:25
best way to find out is to put into their init:

hint format ["%1",primaryWeapon this]

It will give the main gun of the vehicle in a hint when you preview, then just use this removeWeapon "that weapon name you just got"

dale0404
Jun 6 2009, 22:32
Sorry mate just tried that and the hint does not pop up. Do I need to be the gunner in the tank or ?

dale0404
Jun 7 2009, 12:31
Any ideas on this please?

MiXeR
Jun 7 2009, 12:57
hint format["%1", currentWeapon mytank]
mytank - name of tank. It won't work with hint format["%1", currentWeapon player] or hint format["%1", currentWeapon this]