Search the Community
Showing results for tags 'direction'.
Found 4 results
The Dismount mod allows the player to exit the vehicle at the point closest to where they are looking. Steam: https://steamcommunity.com/sharedfiles/filedetails/?id=1841553455 https://github.com/ampersand38/dismount-where-you-look/releases/latest
Recently I found using of VR garage from this mission. but in this, I can't set my direction of spawning vehicle. I asked to mission editor about this, but he can't do anything without BI garage(or vr garage) system changes. I think so too... is there any way to add set direction option to this https://community.bistudio.com/wiki/BIS_fnc_garage or this one https://community.bistudio.com/wiki/createVehicle ?
Hey everybody! I have saved 4 different positions and their relative directions to spawn a unit, but unit's direction never matches the one I saved. First, this is the code I am using: _pos = [ [3144.13,3984.86,1.24656], [3148.41,3982.62,1.1283], [3148.64,3979.73,1.10767], [3153.13,3977,1.0178] ]; _dir = [16.0291,308.932,328.367,320]; _dice = count _pos; _dice = floor (random _dice); _grp = createGroup EAST; _unit = _grp createUnit ["O_G_Soldier_F", markerPos "marker", , 0, "NONE"]; _unit setPosATL (_pos select _dice); sleep 1; _unit allowFleeing 0; _unit setDir(_dir select _dice); _unit setUnitPos "MIDDLE"; I check unit's direction after it's creation with _dirTarget = getDir cursorTarget; hint str(_dirTarget); For example my last 3 spawns: Instead of 308.9 it's 338.9 Instead of 328.3 it's 358.3 Instead of 16.02 it's 0.011 How is that possible and how am I able to stop this behaviour? It's driving me crazy, because I need them quite accurate. I tried with different sleep values, with and without allowFleeing or setUnitPos. I don't get it. Kind Regards.