ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "PrimaryFirePixelOffset"

From ModEnc
Jump to: navigation, search
(Created page with "PrimaryFirePixelOffset=X,X directly shifts the location where the weapon is fired relative to the object from by number of pixels. It is different from PrimaryFireFLH in t...")
 
(Fixed and updated.)
 
Line 1: Line 1:
PrimaryFirePixelOffset=X,X directly shifts the location where the weapon is fired relative to the object from by number of pixels. It is different from [[PrimaryFireFLH]] in that it moves the origin directly instead of rotating it relative to the turret or object.
+
{{Flag
The first number shifts the location forward/back (camera view) from the object in pixels with positive numbers shifting back, and the second number shifts left/right with positive numbers shifting right.
+
|name={{PAGENAME}}
 +
|files={{Categ|ini=art}}
 +
|values={{values|intlist|X,Y}}
 +
|default=0,0
 +
|types={{Categ|BuildingTypes}}
 +
|ts=yes
 +
|fs=yes
 +
|hp=yes
 +
|ra2=yes
 +
|yr=yes
 +
|ares=yes
 +
}}
  
 +
Determines the offset, in pixels, from this building's origin{{fnl|1}} to fire the building's [[Primary|primary weapon]] from. Expressed in {{tt|X,Y}} format where X shifts the offset on the X-axis (positive values move the point to the right, negative values move to the left) and Y shifts on the Y-axis (positive values move the point down, negative values move up).
 +
 +
Assumes the building has no [[turret]]. If the building has a turret, use {{f|PrimaryFireFLH|link}} instead.
 +
 +
{{fn|1|The top corner in the building [[foundation]].}}
  
 
== See Also ==
 
== See Also ==
 +
*[[SecondaryFirePixelOffset]]
 
*[[PrimaryFireDualOffset]]
 
*[[PrimaryFireDualOffset]]
 
*[[PrimaryFireFLH]]
 
*[[PrimaryFireFLH]]

Latest revision as of 11:48, 20 January 2023

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: PrimaryFirePixelOffset
File(s): art(md).ini
Values: Comma-separated list of integers. (Limited to: X,Y)
Default: 0,0
Applicable to: BuildingTypes


Determines the offset, in pixels, from this building's origin1 to fire the building's primary weapon from. Expressed in X,Y format where X shifts the offset on the X-axis (positive values move the point to the right, negative values move to the left) and Y shifts on the Y-axis (positive values move the point down, negative values move up).

Assumes the building has no turret. If the building has a turret, use PrimaryFireFLH instead.

1 The top corner in the building foundation.

See Also