![]() |
?How to make structures function without a player? I tried to post this on the modding forum and am getting very little feedback so thought I would try here. Concept: I would like to place several patriot batterys in key locations to restrict air traffic to ALL players. Requirements: They would need to be self powered and self functioning I have managed to get them self powering (but america also has them)...unfortunately they scan the sky but don't shoot at anything. Here are their current settings: These are my current settings for one of my patriots. Name:testobject1 Team:teamenemy* Script:none Initial Health:100 Max Hitpoints:default for unit (enabled,powered,indestructible,unsellable){have tried all combo's of the checkbox options} Aggressiveness:Aggressive Veterancy:Normal Weather:use map weather Time:use map time z=0.00, angle= -45.00, stop= 0, Target dist= "blank", shroud clear dist= "blank" *(teamenemys enemys= plyrcivilian, skirmishamerica skirmishgla skirmishchina) *(faction=ai){faciton ai is a copy paste of factionamerica with a few changes} {{PlayerTemplate FactionAI Side = AI PlayableSide = No StartMoney = 0 PreferredColor = R:0 G:0 B:255 IntrinsicSciences = SCIENCE_AMERICA PurchaseScienceCommandSetRank1 = SCIENCE_AMERICA_CommandSetRank1 PurchaseScienceCommandSetRank3 = SCIENCE_AMERICA_CommandSetRank3 PurchaseScienceCommandSetRank8 = SCIENCE_AMERICA_CommandSetRank8 SpecialPowerShortcutCommandSet = SpecialPowerShortcutUSA SpecialPowerShortcutWinName = GenPowersShortcutBarUS.wnd SpecialPowerShortcutButtonCount = 5 DisplayName = INI:FactionAI StartingBuilding = AmericaCommandCenter StartingUnit0 = AmericaVehicleDozer ScoreScreenImage = America_ScoreScreen LoadScreenImage = SAFactionLogoPage_US LoadScreenMusic = Load_USA ;HeadWaterMark = SCTempSelectPortrait ; don't use unless we add a "generalshead for non selected generals FlagWaterMark = WatermarkUSA EnabledImage = SSObserverUSA BeaconName = MultiplayerBeacon SideIconImage = GameinfoAMRCA End}} If anyone could point out obvious flaws...or any suggestions I would appreciate it... Thanks, Corum_Datum corum_datum@yahoo.com corum_datum@hotmail.com |
Re: ?How to make structures function without a player? Ah yes, the old rebel forces fighting against all....I attempted this once with a set of AA Trucks. You have to setup borders or trigger areas in your scripts first of all. These will notify the Turrets or Vehicles that the enemy is in the area, and not just some unit. You also need to set the scripting to override the alliance settings on the turrets, make it so they are enemies no matter what. Another thing that will help your scripts, you may or may not run into this, is to name the turrets all different names. Sometimes the scripting will ask for a specific unit and that is where that comes into place. As far as my AA Truck rebels working....well...lets just say they were asleep for a long time and never woke up. :uhoh: As for trigger areas, I can definitely say that they work, I made an undead army that was controlled by a tower and it functions nicely :thumbsup: If you run into problems with the rebels I would suggest trying something a little more reliable......such as empty tanks that can only be driven so far before they explode......<<<<look for that script in my upcoming Border Patrol map :type: |
| All times are GMT -7. |
Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.