Customize Flying spawn when the unit is produced - #2399
Open
FS-21 wants to merge 3 commits into
Open
Conversation
|
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
Contributor
|
is it possible to make it descend first before moving to rally point? Like how normally produced jumpjet should take off and then move |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FlyingProductioncontrols whether this unit type uses flying production.FlyingProduction.SpawnHeightdetermines the initial spawn altitude in leptons along the Z-axis. If resolved to 0 or negative, flying production will not be used and the unit exits normally.FlyingProduction.PlayFactoryAnimcontrols whether the producing factory plays its unloading door/exit animation.FlyingProduction.SpawnAnimspecifies an animation to play at the aerial spawn coordinates when the unit is created.FlyingProduction.SpawnAnim.AttachedToObjectdetermines whetherFlyingProduction.SpawnAnimis attached to the spawned unit and follows its movement.FlyingProduction.SpawnAtaccepts a list of BuildingTypes indicating where the unit should spawn, evaluated in priority order from left to right. When multiple buildings of that type exist, it prioritizes the producing factory itself if it matches, then any building marked as primary, and otherwise the closest one to the producing factory. If none of the candidate buildings exist or are alive, it falls back to the producing factory.FlyingProduction.RallyPointFromSpawnBuildingdetermines whether the unit targets the spawn building's rally point instead of the producing factory's rally point.FlyingProduction.SpawnOffseton[BuildingType]sets a 2D coordinate offset in leptons (X, Y) relative to the center of the structure for positioning the spawn point.FlyingProduction.SpawnHeighton[BuildingType]overrides the spawn altitude for units appearing at this structure.FlyingProduction.SpawnFacingon[BuildingType]specifies the facing (0-255) the unit takes upon spawning, as well as the exit direction if no rally point exists.FlyingProduction.RallyPointon[BuildingType]enables rally point placement on structures that are not standard vehicle or infantry factories (e.g. helipads or towers), allowing them to establish a rally point with EVA confirmation and tactical line.In
rulesmd.ini: