Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

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

×