At weekend I tried to make a building script:
The player have to buld a roadblock with "sandbag" (WoodFence).
I get the position of player and add 1m to X coordinate and create a woodfence...
I know it's not the perfect solution, but in my situation, the player is watch for North, and it could be works, but didn't, because the sandbag created in random places...
Once 2m behind the player and next time 3m left from player...etc.
Could anybody help me to create a general building script:
Parameters are the "vehicle" what the script build (eg: WoodFence) and the distance in meter from the player and the degree how the new object's direction will be...
And when script activated: the new object is created front of player (where player watch).
Please help me!