-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add speed limit attribute #699
base: master
Are you sure you want to change the base?
Add speed limit attribute #699
Conversation
|
||
if (_vehicle isEqualType []) exitWith { | ||
{ | ||
[_x, _speed] call FUNC(setSpeed); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if spawn
would speed things along ?
^ Granted, my laptop doesn't run both the game and the Server instance simultaneously especially fast, and on it I noticed that forEach
+spawn
takes a noticeable time to get things done compared to call
, like CBA_fnc_setLoadout
can take something like 400-600ms (looks like it) to get the squad equipped (which also happens in a random order) instead of next to instantly (in the squad leader's command bar order).
^ Might help when someone has a less good Internet connection, dunno.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting, so each one can run "in parallel"?
As for network, I tried to structure the CBA event and the function such that the selected array is pre-filtered and then only sent on network once, if I'm getting your meaning correctly.
When merged this pull request will:
I messed up #648 and a new pr seemed like the easiest way to fix it.
Attribute toggle settings split to #716