OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: RaiN_MaN on 12 Feb 2004, 14:04:24
-
Hi
A few days ago i saw those beautiful US Tanks made by Sigma, including the upgraded M1A1 (M1A2?).
Anyway, i'm working on a mission involving this tank (obviously :P) and i need to get support (ammo and repairs). The repairs are no problem, it's the ammo, since the NATO ammo truck doesn't include the new kind of ammo used by this tank. I was trying to figure out the name of the ammo, the readme doesn't mention anything and messing with the config.cpp of this addon didn't help me. Can someone plz point me to the line in the config.cpp which names the ammo as used ingame? I'm not much into addon making so i'm not even sure if i can find it inside the config.cpp :P
I also searched the forum without results, some help would be really great.
Thx in advance!
-
Put this in the init line of the tank and seat yourself as gunner:
this addEventHandler ["fired",{player globalChat (_this select 4) }]
Then fire away!!
-
I still have to try it, but if this works how i belive i really thank you for this little but extremely usefull line of code! :)