Realicticly it's not a Geiger counter, but something similar device... I want create a mission, where the player have to stop a civilian who flee with weaponized plutonium in his backpack. The player don't see him, because he left the spot before the player arrived. So player have to find him.
There is no clue what direction the civilian flee, so player have to run in all direction with this device and it will pinging and player have to hear from the pinging, where direction is right... Then he have to follow the "trace" until he have visual contact.
I figured out, in this script have to count the distance between the player and the civvi and add a same time sleep before ping again... But the problem is, it's not a linear thing...
The mission is placed in Takistan... it's deserted, but very hilly. No dense populated area, so the difficulty is not to detect the enemy in a civilian crowd, but to detect the direction... So the pinging period have to change quickly in the farer distance then in closer... When the player is close to 200m, he will see the target, but when he is 1000m he have to hear the difference from pings.
Additionally, I need a good sound for this device and maybe an interface - but it's not so important.
EDIT:
Ok. This is my forst try:
_unit = _this select 0;
_target = _this select 1;
LAC_geiger_need = true;
while {LAC_geiger_need} do {
playSound "geiger";
_waittime = (_unit distance _target) / 1000;
Sleep _waittime;
};
It works fine, but it's linear.
Someone can help me to count _waittime to change bigger when target is farer..?