Jump to content
Nemanjic

Facing specific object on spawn

Recommended Posts

Guys, the title tells enough but I will provide details of what I need:

Newly spawned object_2 to face the center of existing faraway object_1 so I can visually scan for approximate azimuth to find object_1 using a compass.

gcNn8E9.jpg

Tried so far:

object_2 setDir (getDir object_1 );    - object_2 only copy the direction of object_1  so it is useless. 

object_2 lookAt object_1;    - also useless coz this is obviously a command for live units to watch a specific object 

Appreciate any help, thanks in advance

EDIT: 2 hours I was looking for a solution and just after writing post I found it 🤦‍♂️

 

Share this post


Link to post
Share on other sites
16 minutes ago, Nemanjic said:

2 hours I was looking for a solution and just after writing post I found it 

 

Ha, happens all of the time!

  • Like 1

Share this post


Link to post
Share on other sites

Yap you are right sir I missed place for posting. 

I used different code but it works too. Thanks for quick reply sir

I found this; post from @Greenfist player setDir (player getDir _positionOrObject);  -works like a charm

3 minutes ago, Harzach said:

Ha, happens all of the time!

I am happy when it happens xD

Share this post


Link to post
Share on other sites

And as per my sig, I was wrong anyway. This is the wrong case for getRelDir. So, never mind me! 🤐

  • Haha 1

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

×