Jump to content
Xplorer4x4

Float dx

Recommended Posts

So looking in the battalion chief call script, I see things like this:

if(Station1)                {                                    v.PushActionExecuteCommand(ACTION_APPEND, DUMMY_GATES, Caller, 5, false);                    float dx = 1050.f, dy = 0.f, dz = 0.f;

What is float dx?

Link to comment
Share on other sites

Seems to be manually setting coordinates for something. I don't have a copy of LA mod on me at the moment could you post the script file? (nor do I have EM4 on this computer) If I can look at the whole thing I might be able to figure it out.

 

From what I can see:

 

dx, dy, and dz are all be initialized as floats (decimal numbers). while dy and dz are initialized with a starting value of 0.0, I don't see why dx is 1050.0.

 

In case you didn't realize:

 

dx, dy, dz refer to 3d coordinate (at least that is my guess based upon the names). X-axis  (dx), Y-axis (dy), Z-axis (dz). Why d? Perhaps d means displacement?

Link to comment
Share on other sites

From the looks of it, it's getting a distance value, comparing that to a location (the position of a vehicle), and then adding that position and the distance together for another location value used for the vehicle to move to. I've changed it so that different vehicle spots will pull out of the station further or closer, which fixes the 3rd ambulance from getting stuck in FS1, and keeping the vehicles from moving too far out in the road before their push move.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...