#1 Does anyone know how to find all the players(bots included) and vehicles in a radius from a point?
#2 How do I apply damage to the above once found?
My attempt:
%ray = containerFindFirst($TypeMasks::VehicleObjectType | $TypeMasks::PlayerObjectType,%obj.getPosition(), %obj.radius,%obj.radius,%obj.radius); //obj.radius = 100
%col = getWord(%ray, 0);
while(isObject(%col))
{
echo(%col);
%col.Damage(%obj,%col.getPosition(),%obj.radiusDamage,%obj.radiusDamageType);
%ray = containerFindNext();
%col = getWord(%ray, 0);
}
problems with my current method:
1. the point has to be practically inside the object to work
2. no damage is done to the found objects