Jump to content
Sign in to follow this  
kocrachon

Get POS question

Recommended Posts

So I am trying to use This Scud. However, even after a year or so of making arma missions I am still a super noob. My question is, how do I find out the POS for something? I know the GetPOS command, but how do I find out the actual number?

For example, my mission is to prevent a scud from hitting a town. I was figuring I could stand in that town, use the get POS command to tell me what the numbers of that exact location is. Anyone able to help me understand all of this better?

Share this post


Link to post
Share on other sites

Well ok.

1. Give the Scud a name. For example "Scud" smile_o.gif

In the init.sqf or init.sqs add a code:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

[] execVM "getPos.sqf";

getPos.sqf

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

while {True} do

{

// /////////// DEBUG ///////////

hint format ["DEBUG:\nScud Position: %1", getPos Scud;

// /////////////////////////////

sleep 1;

};

Now you will get the scud position in [x,y,z] format.

Share this post


Link to post
Share on other sites

How do I create an sqf file?

Also, is there a way where I can just say "Hit this target" such as, a car in the middle of the town, or are coordinates the only way to do it?

EDIT: I have found out that if I open up the mission sqf file, it actually tells me the cordinates when I go to the actual unit... how easy... man I feel dumb.

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  

×