Command:
nearestObjects[getpos player, ["SmokeShell"], 100]
Result: []
Command:
getpos player nearObjects ["SmokeShell",100]
Result: [1779990: smokegrenade_white.p3d]
Command:
nearestObject [getpos player, "SmokeShell"]
Result: [1779990: smokegrenade_white.p3d]
The only way nearestObjects will ever return a SmokeShell is with [] as class input:
nearestObjects[getpos player, [], 100]
Result: [B Alpha 1-1:1 ([VB]AWOL),NOID footstep_r.p3d,NOID footstep_l.p3d,1780019: fly.p3d,1780010: fly.p3d,1780007: fly.p3d,1779990: smokegrenade_white.p3d]