ALiVEOS / ALiVE.OS

ALiVE Open Source GPL v2
http://alivemod.com/
Other
157 stars 80 forks source link

Fixed mechanized/armored units not moving after spawning [issue 720] #721

Closed MaxShadow09 closed 3 years ago

MaxShadow09 commented 4 years ago

720

In fnc_profileEntity.sqf, under the "spawn" case, the profile waypoints were created before the vehicle assignments. Due to this, mechanized and armored profiles get stuck right after spawning, because they have a move waypoint before the entire crew is inside the vehicle.

All I did was change the order in which these two functions execute. Now waypoints are created after vehicle assignments. All vehicles now move normally after spawning. It's a very simple fix, shouldn't affect anything else.