Jump to content
Sign in to follow this  
dfmodmaster

Position tracking

Recommended Posts

I'm pretty new to scripting in ArmA -- is there anyway to periodically check for the position of a player, and then output that position and a timestamp through a port? (I'm not sure if I'm being quite clear here)

Edited by DFModMaster

Share this post


Link to post
Share on other sites

This code will output player’s position every 5 seconds. Put this in your init.sqf.

[] spawn
{
while {true} do
{
	hint format["Time since mission start: %1\nPosition: %2",time,position player];
	sleep 5;
};
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×