• Moose
  • Announcements

    • Dirktator

      We're close! Please help us reach our April & May goals!   04/28/2017

      We're getting close with our April goal - please help us over the final bump! Your donations not only help keep the site up and running, but also allows us to expand some functionality and upgrade other features of the site periodically to stay current! We're looking for some community support to help us get a new Chat system (as you know our old Chat is no longer supported by IP.Board). A new system promises to give us many more options and all for fairly little cost, relatively speaking. Please help us reach our April goal so we can keep bringing you site improvements as well!  Donate and Get a Gift or Donate Any Amount Thanks so much! - Dirktator & The Admins
AmiPolizeiFunk

How to add lights to a prop?

34 posts in this topic

2 hours ago, AmiPolizeiFunk said:

Well I noticed that there are variables in the light effects to say which axis to rotate and at what speed. I was able to edit them in ModTools, and the spotlight started animating round and round... looking just like a lighthouse or movie searchlight. If I knew how to make a quick .gif of it, I would have, cause it was really cool looking.

Right, but those values can not be saved, so you would need an additional mod that creates a new light effect.

Share this post


Link to post
Share on other sites

 

Released a new asset, which is a collaboration with vasimr22 (who has been making some great airport assets). It's a runway threshold lights prop. Originally we wanted to do some green lights, but 

Aircraft Light Right
  Type: Spot
  Intensity: 1
  Blink Type: None
  Base Color: A0FFA0

 

from the list on github didn't work.

 

In fact, many of the light types didn't work. Is there a special trick to get the vehicle light effects to work on a prop?

 

PreviewImage.png.242be86b477105e2cf770cbff1fafe43.png

https://steamcommunity.com/sharedfiles/filedetails/?id=908980935

 

FINAL WORKING SCRIPT FOR FOUR LIGHT EFFECTS:

 

// --- FIRST LIGHT EFFECT ---
// Used light effect
var lightEffect1 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
// Final position in prop
Vector3 pos1 = new Vector3(0f,1f,0f); 
// 
// Final direction in prop
Vector3 dir1 = new Vector3(0f,0.2588f,0.9659f);
// pointing forward about 15deg
var propEffect1 = new PropInfo.Effect {m_effect = lightEffect1, m_position = pos1, m_direction = dir1 };
	
// --- SECOND LIGHT EFFECT ---
// Used light effect
var lightEffect2 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
// Final position in prop
Vector3 pos2 = new Vector3(-1.7f,1f,0f); 
// 
// Final direction in prop
Vector3 dir2 = new Vector3(0f,0.2588f,0.9659f);
//  
var propEffect2 = new PropInfo.Effect {m_effect = lightEffect2, m_position = pos2, m_direction = dir2 };
	
// --- THIRD LIGHT EFFECT ---
var lightEffect3 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
Vector3 pos3 = new Vector3(-3.4f,1f,0f);
// ..
Vector3 dir3 = new Vector3(0f,0.2588f,0.9659f);
// ..
var propEffect3 = new PropInfo.Effect {m_effect = lightEffect3, m_position = pos3, m_direction = dir3 };
	
// --- FOURTH LIGHT EFFECT ---
var lightEffect4 = EffectCollection.FindEffect("Flood Light Short Red") as LightEffect;
Vector3 pos4 = new Vector3(-5.1f,1f,0f);
// ..
Vector3 dir4 = new Vector3(0f,0.2588f,0.9659f);
// ..
var propEffect4 = new PropInfo.Effect {m_effect = lightEffect4, m_position = pos4, m_direction = dir4 };
	
// Apply effects to prop
(GameObject.Find("Tool Controller").GetComponent<ToolController>().m_editPrefabInfo as PropInfo).m_effects = new PropInfo.Effect[] { propEffect1, propEffect2, propEffect3, propEffect4};
(GameObject.Find("Tool Controller").GetComponent<ToolController>().m_editPrefabInfo as PropInfo).m_hasEffects = true;

 

Bolduck91, boformer and Mr_Maison like this

Share this post


Link to post
Share on other sites
6 hours ago, AmiPolizeiFunk said:

Any ideas, anyone? green light effects on props?

You can find all available effects (also sound effects) in the EffectCollection in the ModTools scene explorer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  :thumb:


Register a New Account

Sign In  

Already have an account? Sign in here.


Sign In Now


  •  
  • Similar Content

    • By CT14
      26 lowrider car models in HD. Each model has an Orthogonal and Diagonal variation.
      Represented marques are Chevrolet, Buick, Oldsmobile, Pontiac, Cadillac, Chrysler, Dodge, Plymouth, Ford.
      In the Lot Editor, props are found under the prefix CT14_LRP_O_ and CT14_LRP_D_, respectively.
      Four named prop families have been included:
      0x5F85E919 - CT14 LRP Ortho - Doors Open, Man 0x5F85E91A - CT14 LRP Ortho - Squattin' 0x5F85E91B - CT14 LRP Diag - Doors Open, Man 0x5F85E91C - CT14 LRP Diag - Squattin' One dat file is included with all the models and props.

      Installation

      Place the folder "Lowrider Props" into your plugins folder - for example as "Plugins/CT14/Lowrider Props".
      Remove the folder to uninstall. Any lots which use these props will be a little more empty.

      History

      04162017 - initial release version 1.0

      Bugs

      Please report bugs to the development thread:
      http://community.simtropolis.com/forums/topic/69360-ct14s-railroad-lots-and-bat/

      Credits
       
      Credits and big thanks to these authors without whose work this would not have been possible, as well as to authors further acknowledged on source pages:
      1946 Ford Bomb by Coyote56
      https://3dwarehouse.sketchup.com/model/u4b39fdad-b115-4f4e-a9a9-7afba136a519/1946-Ford-Coupe
      1957 Chevrolet Bel Air by eezerz ..
      https://3dwarehouse.sketchup.com/model/e8440dbc6f7058427fb91362a54be751/1957-Chevrolet-Bel-Air-Lowrider
      1957 Dodge Lancer by Coyote56
      https://3dwarehouse.sketchup.com/model/u7b89e23b-f81c-4abd-abce-2c12453942d3/1957-Dodge-Coronet-Lancer-Lowrider
      1958 Chevrolet Impala by Coyote56
      https://3dwarehouse.sketchup.com/model/uf69d4fce-a1d0-456b-a6cc-2e20dd2af943/1958-Chevy-Impala-Lowrider
      1959 Chevrolet Impala by Coyote56
      https://3dwarehouse.sketchup.com/model/u69bdbb26-3308-4eeb-91bb-449bea3d74f6/1959-Chevy-Bel-Air-Lowrider
      1963 Chevrolet Impala by captainkirk
      https://3dwarehouse.sketchup.com/model/u0182e4f6-771f-4d7d-a3e3-d0cf455fda47/1963-impala
      1967 Chevrolet Impala by eezerz ..
      https://3dwarehouse.sketchup.com/model/fcf91dda00cd7fd1afe1d4530f4c6e24/1967-CHEVROLET-IMPALA-LOWRIDER
      1970 Dodge Charger by Coyote56
      https://3dwarehouse.sketchup.com/model/4cf5cfe0a7728a461c2639aea037fbfc/1970-Dodge-Charger-Lowrider
      1971 Chrysler New Yorker by Coyote56
      https://3dwarehouse.sketchup.com/model/ub8b38c5b-77c1-4367-aabe-f267db975160/1971-Chysler-New-Yorker-Lowrider
      1972 Ford Gran Torino by Coyote56
      https://3dwarehouse.sketchup.com/model/u8d39ce13-fa87-46ef-a581-cd4f3691d0e0/1972-Ford-Torino-Fastback-Lowrider
      1972 Plymouth Valiant Lowrider by Coyote56
      https://3dwarehouse.sketchup.com/model/u64ac3e2a-95eb-4ec3-aba2-3e606d37324c/1972-Plymouth-Valiant-Lowrider
      1976 Ford Torino by Coyote56
      https://3dwarehouse.sketchup.com/model/u03e5dbf4-f13b-401a-9403-3cfdc5ca930a/1976-Ford-Torino-Lowrider
      1977 Cadillac Sedan Deville Convertible by lowriderfreak
      https://3dwarehouse.sketchup.com/model/19932caa71a4c3666a9c18480b4632cb/gang-green-caddy

      1979 Chevrolet Monte Carlo by Coyote56
      https://3dwarehouse.sketchup.com/model/uecbc5350-7f8b-49db-828f-c4dc1836f591/1979-Chevy-Montecarlo-Lowrider
      1979 Chrysler LeBaron by Coyote56
      https://3dwarehouse.sketchup.com/model/u91fdc64a-1f4f-4ace-865f-9a83997e7140/1979-Chrysler-LeBaron-Lowrider
      1980 Oldsmobile Ninety Eight by lowriderfreak
      https://3dwarehouse.sketchup.com/model/7ec56ddbe609f61919071f84fdfae8d0/1980-olds-98-lowrider
      1980s Buick Regal by eezerz ..
      https://3dwarehouse.sketchup.com/model/6b33d2f326f28f7f1c59d7dc6d87eb5/Buick-Regal-Lowrider
      1980s Cadillac Fleetwood Brougham by Sonoma ZR-2
      https://3dwarehouse.sketchup.com/model/a7065cc33270e551a3049d0dcf503cdf/Cadillac-Fleetwood-Brougham-Lowrider
      1980s Cadillac Fleetwood Series 75 Limousine by eezerz ..
      https://3dwarehouse.sketchup.com/model/a86ab6f8af60c6afe1d4530f4c6e24/CADILLAC-LIMO-LOWRIDER
      1980s Chevrolet Caprice by eezerz ..
      https://3dwarehouse.sketchup.com/model/b999fe086a608fd57fb91362a54be751/Chevrolet-Caprice-Lowrider
      1980s Oldsmobile Custom Cruiser by eezerz ..
      https://3dwarehouse.sketchup.com/model/a21b8057221c0f0141469a68ac888def/Oldsmobile-Wagon-Lowrider
      1980s Pontiac LeMans by Coyote56
      https://3dwarehouse.sketchup.com/model/86adce0cf5a214e21c2639aea037fbfc/1979-Pontiac-Lemans-Lowrider
      Chevrolet Square Body Blazer by Muhammed A.
      https://3dwarehouse.sketchup.com/model/9a537a2e6f8ced4463739f01ec1d22b0/chevy-blazer-lowrider
      Dodge Diplomat by eezerz ..
      https://3dwarehouse.sketchup.com/model/59fa7def1077fc1b2bf11e36619ee78e/DODGE-DIPLOMAT-LOWRIDER
      Dodge Monaco by Coyote56
      https://3dwarehouse.sketchup.com/model/d2de6d23a52106b1c2639aea037fbfc/1974-Dodge-Monaco-Lowrider
    • By Bullet Filter
      Hello!
      Although I have an odd feeling that no one will reply or bother to look at this thread, I would like to notify everyone that I am starting up a semi-serious simcity private region on Europe West 1. If you wish to join then add my origin: BulletFilter
      If you have any questions feel free to ask them with a simple reply.
      Thank you for taking the time to view this
      3/7 CITIES CURRENTLY IN USE
    • By tony56a1
      Hi all,

      Just wanted to share a mod that I released a few days back. Basically, it allows you to place props in your assets/in-game that doesn't count towards the global prop limits. I'd be really interested in getting some building asset makers to try it out( to get around the 64 prop limit ), and get some feedback/bug reports to help me try to improve the mod/fix bugs in the mod!

      To use this mod, basically hold shift when placing your prop, and it'll create a prop that doesn't count toward the global limit.
      For building makers, when you save the asset, you'll also get a PropUnlimiter.json file. That should be copied into the workshop asset folder, and buildings in-game should be recognized by the mod in-game.
    • By RandyE
      Transfer here from one route to another. Transit and network enabled.
       ___           _                 
      | _ )_  _ ___ | |   ___  ___ _ __
      | _ \ || (_-< | |__/ _ \/ _ \ '_ \
      |___/\_,_/__/ |____\___/\___/ .__/
                                  |_|  
      City Bus Loop 1 - 3x2. 
      Capacity: 2500.
      Medium Wealth
      Plop Cost: 350
      Monthly Cost: 150
      Landmark Effect: 10,5
      Park Effect: 5, 5
      Air Pollution: 3, 2
      Water Pollution, 2, 2
      Maxis Night Lighting
      Dependencies:
      Bus props used from: Glenni-buspack-
      RATP_Microbus-1
      RATP_Scania-Vest-HSD
      ORION-Old-MTAbus
      ORION-Old-MTAbusLongIsl
      Orion_VII_SacramentalRegionalTransit

      INSTALL to folder:
      C:\Users\<Username>\Documents\SimCity 4\Plugins
    • By vladsch
      Hello there! I hope someone can help me with this one.
      I'm trying to edit some streetlights with the Assets Editor and they all seem to load properly to the point I can select them, but when they have to be imported, nothing shows up, the "select a model to import" is empty, even though the same model has just been selected!
      I checked for other kind of items (buildings, parks) and there are no issues, only with the props, and this happens to absolutely all of them!


  • Recently Browsing   0 members

    No registered users viewing this page.