Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: Tarasyuk on May 16, 2012, 04:31:46 AM

Title: white glow
Post by: Tarasyuk on May 16, 2012, 04:31:46 AM
Hi there. I have a question - is there any way to delete that white glow on the weapons and quest objects ?
Title: white glow
Post by: jaca37 on May 16, 2012, 10:52:53 PM
That's a good question. Weapons don't have that glow, if you already have one. So I guess it might be achievable.
Title: white glow
Post by: zahar999 on May 17, 2012, 08:05:22 AM
command objects glow


 




add light




game.highlighting:AddHighlighting(game.entitywrapper:GetEntityByName("the name of the object"))


 




remove the light




game.highlighting:RemoveHighlighting(game.entitywrapper:GetEntityByName("the name of the object"))


 




for example, the front door to the office of Bruno




game.highlighting:AddHighlighting(game.entitywrapper:GetEntityByName("C_Door"))


 




the name of the object you can see here




http] (//forum/22-existenz34-s-mods/1912-code-for-all-doors-windows-m2-ja)
Title: white glow
Post by: jaca37 on May 18, 2012, 05:00:32 PM
Do I have to put all items on the list or there is any single line for all objects?
Title: white glow
Post by: zahar999 on May 18, 2012, 05:46:05 PM
QuoteDo I have to put all items on the list or there is any single line for all objects?



for each object separately to define the command


 




for example




the front door to the office of Bruno




game.highlighting:AddHighlighting(game.entitywrapper:GetEntityByName("C_Door")) - add light




game.entitywrapper:GetEntityByName("C_Door"):EnableAction() - to open the door


 




the door to the jewelry




game.highlighting:AddHighlighting(game.entitywrapper:GetEntityByName("5MA_jewellery00")) - add light




game.entitywrapper:GetEntityByName("5MA_jewellery00"):EnableAction() - to open the door


 




<div class="ipsSpoiler_header">

http://www.youtube.com/watch?v=-KNBiCyb_ro (http://www.youtube.com/watch?v=-KNBiCyb_ro)


</div>

 




and activate the script is just next to the object