Jump to content

IsLaser: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
en>Testid123
mNo edit summary
Line 16: Line 16:


{{bugs}}
{{bugs}}
This flag is only correctly read from the object's {{f|Primary|link}} weapon; If the object's {{f|Secondary|link}} weapon has {{f|IsLaser|yes}} but the {{f|Primary}} does not, then no laser is drawn for the {{f|Secondary}}.<br>
*This flag is only correctly read from the object's {{f|Primary|link}} weapon; If the object's {{f|Secondary|link}} weapon has {{f|IsLaser|yes}} but the {{f|Primary}} does not, then no laser is drawn for the {{f|Secondary}}.<br>
 
*If [[BuildingTypes]] uses a weapon with the tag <b>IsLaser=yes</b>+{{f|IsHouseColor|yes|link}} Other weapons tagged <b>IsLaser=yes</b> Those weapons will always read the laser color from the color of weapon 1.<br>
Sometimes the laser beam has a special transparency When attacking through any area.<br>
*Sometimes the laser beam has a special transparency When attacking through any area.<br>
[[File:IsLaser transparent.png]]<br>
[[File:IsLaser transparent.png]]<br>

Revision as of 14:03, 19 September 2024

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: IsLaser
File(s): Rules(md).ini
Values: boolean
Default: no
Applicable to: Weapons


If set, the game will draw a laser along the projectile path. The laser's lifetime is defined by LaserDuration, and its colors are defined by LaserInnerColor, LaserOuterColor, LaserOuterSpread and IsHouseColor.

Bugs/Side-Effects/Unexpected Limitations

  • This flag is only correctly read from the object's Primary weapon; If the object's Secondary weapon has IsLaser=yes but the Primary does not, then no laser is drawn for the Secondary.
  • If BuildingTypes uses a weapon with the tag IsLaser=yes+IsHouseColor=yes Other weapons tagged IsLaser=yes Those weapons will always read the laser color from the color of weapon 1.
  • Sometimes the laser beam has a special transparency When attacking through any area.

File:IsLaser transparent.png