Jump to content

Recommended Posts

So I am currently trying to make a script that sets some type of blockade in the windows depending on the building.

It works fine positioning wise since I have worked with modelToWorld/worldToModel, but I am not sure how to get and set the direction depending on the building/where the building is, so it just ends up looking like this:
htbZLgV.png

 

Would appreciate it if anyone could help me out with this.

Share this post


Link to post
Share on other sites
14 minutes ago, beno_83au said:

Check the commands nearestBuilding and getDir.

Already attempted getDir but didn't realize the method until now.

Simply did: 

/*
 _obj: the actual blockade
 _house: obvisouly the house
 _objTimesDir; the amount of times it needs to rotate
*/

_obj setDir (getDir _house - (_objTimesDir * 90));

 

  • Like 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

×