we can detect RPG,LAW,missile,grenade etc. by nearestobject[_unitname,_ammotype]
RPG's ammotype is "RPG"
by why I can't detect shell by
nearestobject[_unitname,"shell120"]
is shell120's ammotypename is not "shell120"?
but it's "addeventhandler["fired",{_this exec"check.sqs"}]" tell me this
;check.sqs
_ammotpye=_this select 4
#mian
titletext[format["ammotype is:%1",_ammotpye],"plain"]
exit
I fire a m1a1 and the titletext is"ammotype is:shell120"