Jump to content
Luft08

Querying a map's Default Traffic Signs for info

Recommended Posts

I have noticed that I cannot get the facing information for default traffic signs on a map. Are traffic signs that are placed on a map by default special? Do I need to use some other method (Not getDir Object) to get their facing direction? The command getDir for a default sign always returns 0.

Share this post


Link to post
Share on other sites

I have an idea that I need to play around with. What if I create a bounding box around the traffic sign. Can I:

1. Create a bounding box around static terrain objects.

2. Get the static terrain object facing using a bounding box.

 

I'll play around with it for a while.

Share this post


Link to post
Share on other sites

Maybe you could do some experimentation by "evolving" such objects with invisible helipads, then attaching a lightpole to them and see whether it would return desired values... ? 🤔

But, yeah, you would remain NOT getting original objects' values.

Share this post


Link to post
Share on other sites

when i want the dir from some object a create a new marker that is taken as referance so for example

i spawn a heli on"spawn1" want it to face a specific direction and get the direcktion from "spawn2"

i know taht means manuely placing markers but its a way for gettig direcktion

if you want to see my script

"_spawn1 = getMarkerPos "spawn1";
_spawn2 = getMarkerPos "spawn2";
_dirVector = _spawn2 vectorDiff _spawn1;
_height = (_spawn1 select 2) + 15.4;
_vehicle = createVehicle ["B_Heli_Light_01_dynamicLoadout_F", _spawn1, [], 0, "NONE"];
heli1 = _vehicle;
_vehicle setVectorDirAndUp [_dirVector, [0,0,1]];
_vehicle setPos [_spawn1 select 0, _spawn1 select 1, _height];
execVM "scripts\racketosweggos.sqf";"

 

i hope this is a help for you.

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

×