Jump to content
BlackbirdSD

Can attachTo have a random position?

Recommended Posts

In this example heli attachTo [crate2,[0,0,0]], "crate2" gets attached at a center position of the "Heli", can the "crate2" be placed on the heli in a random placement radius?

Thanks

Share this post


Link to post
Share on other sites

replace [0,0,0] by [-1 + random 2, -1 + random 2, -1 + random 2] ... but what for??

  • Like 1

Share this post


Link to post
Share on other sites
21 hours ago, pierremgi said:

replace [0,0,0] by [-1 + random 2, -1 + random 2, -1 + random 2] ... but what for??

I have a radio tower on the map I need to get to and I have it starting in 3 random positions on the map and it has a marker.  I want to put a 50m radius on the tower so the marker is just a general area where to look then you have to look in that area to find it.

Thanks

Share this post


Link to post
Share on other sites
On 11/30/2020 at 3:26 AM, BlackbirdSD said:

In this example heli attachTo [crate2,[0,0,0]], "crate2" gets attached at a center position of the "Heli", can the "crate2" be placed on the heli in a random placement radius?

Thanks

 

On 11/30/2020 at 4:11 AM, pierremgi said:

replace [0,0,0] by [-1 + random 2, -1 + random 2, -1 + random 2] ... but what for??

 

5 hours ago, BlackbirdSD said:

I have a radio tower on the map I need to get to and I have it starting in 3 random positions on the map and it has a marker. 

I want to put a 50m radius on the tower so the marker is just a general area where to look then you have to look in that area to find it.

 

You're using attachTo to do this, @BlackbirdSD? Impossible!

 

You'd be better to use createMarker on the radio tower's final position and setting the marker position with BIS_fnc_randomPos.

Share this post


Link to post
Share on other sites
9 hours ago, Maff said:

 

 

 

You're using attachTo to do this, @BlackbirdSD? Impossible!

 

You'd be better to use createMarker on the radio tower's final position and setting the marker position with BIS_fnc_randomPos.

My example was just asking if the 0,0,0 could be changed to be random.  Im not using a marker on that helicopter.  Using it for a radio tower.

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

×