Greetings,
What is _player1 supposed to be, exactly?
the "_" is only really used in .sqs scripts to define local variables as Marvin says, if you call your player "player1" and the vehicle "vehicle", then all you need is this:
In a script:
#loop
? player1 distance vehicle <3: player addAction ["Action", "script.sqs"]
~0.1
goto "loop"
In a trigger:
Condition: player1 distance vehicle <3
On Activation: player1 addAction ["Action", "script.sqs"]
That should solve your problems.
Regards,
-Supreme Commander PsyWarrior
-Psychic Productions