Page MenuHomeFeedback Tracker

Position update - lag on foot / no lag in vehicle
Closed, ResolvedPublic

Description

AI Position does not update as often when AI is on foot as when it is in vehicle

onfoot:

http://www.youtube.com/watch?v=jH4cIWNMS5A

invehicle:

http://www.youtube.com/watch?v=KO6NmpiLJ_E

By the way this is not a problem with drawIcon3d command. I replicated this with custom cutRsc, same result. This is problem with how often position updates for a unit on foot. For player it updates ok, for another unit not ok as you can see.

Details

Legacy ID
1706921369
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Create player unit for yourself in editor
Create another unit and in the name field enter bob
Preview
Open debug console and copy paste this

oneachframe {drawIcon3D ["\A3\ui_f\data\map\vehicleicons\iconManMedic_ca.paa", [0,0,1,1], [(getPosATL bob) select 0, (getPosATL bob) select 1, 3], 1, 1, 45, name bob, 1, 0.03, "PuristaLight"];}

The tag lags (that is drawn on each frame meaning that position does not update on each frame but every other frame.

now go back to editor, doubleclick on bob and change class from Men to Cars

paste the code again in debug console and execute

The tag updates smoothly.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 1706921369.May 7 2016, 2:14 PM
Killzone_Kid added a subscriber: Killzone_Kid.

I have tested this with actual player in multiplayer environment, same thing as with local AI

http://www.youtube.com/watch?v=Lma44x94m3U

tag doesnt lag if in vehicle

This could be closed now. The solution is to use

visiblePosition
visiblePositionASL

commands

http://forums.bistudio.com/showthread.php?155487-Position-update-for-unit-on-foot-is-lagging-a-lot&p=2403197&viewfull=1#post2403197

works great!

Bohemia added a subscriber: Bohemia.May 7 2016, 2:14 PM

Did you try to operate with server settings?
MinErrorToSendNear param?

neokika added a subscriber: neokika.May 7 2016, 2:14 PM

Use visiblePosition function instead.