KaidenSmith 1 Posted August 20, 2020 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: Would appreciate it if anyone could help me out with this. Share this post Link to post Share on other sites
beno_83au 1369 Posted August 20, 2020 Check the commands nearestBuilding and getDir. 1 Share this post Link to post Share on other sites
KaidenSmith 1 Posted August 20, 2020 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)); 1 Share this post Link to post Share on other sites