Game Modding | Call of Duty: Black Ops 3 | Scripting
Dedrix:
Looking for a way to replace a lightbulb model for an emissive one when the power comes on ( so the lighting looks more convincing ), I have tried solving this myself since it seems really simple but I honestly have no clue what I'm doing. If anyone can help me out it would be much appreciated. ( this is what I came up with just to let y'all see where I'm coming from)
levelflag::wait_till("initial_blackscreen_passed");level.model_off=GetEnt("light_off","targetname");//identify offlevel.model_on=GetEnt("light_on","targetname");//identify onlevel.model_onhide();//hide onlevelflag::wait_till("power_on");//wait for power onlevel.model_onshow();//show onlevel.model_offdelete();//delete off
Spiki:
Looking for a way to replace a lightbulb model for an emissive one when the power comes on ( so the lighting looks more convincing ), I have tried solving this myself since it seems really simple but I honestly have no clue what I'm doing. If anyone can help me out it would be much appreciated. ( this is what I came up with just to let y'all see where I'm coming from)
levelflag::wait_till("initial_blackscreen_passed");level.model_off=GetEnt("light_off","targetname");//identify offlevel.model_on=GetEnt("light_on","targetname");//identify onlevel.model_onhide();//hide onlevelflag::wait_till("power_on");//wait for power onlevel.model_onshow();//show onlevel.model_offdelete();//delete off
so whats the problem?
Dedrix:
so whats the problem?
It doesn't do anything. Does this work for you or something?😅
Looking for a way to replace a lightbulb model for an emissive one when the power comes on ( so the lighting looks more convincing ), I have tried solving this myself since it seems really simple but I honestly have no clue what I'm doing. If anyone can help me out it would be much appreciated. ( this is what I came up with just to let y'all see where I'm coming from)
levelflag::wait_till("initial_blackscreen_passed");level.model_off=GetEnt("light_off","targetname");//identify offlevel.model_on=GetEnt("light_on","targetname");//identify onlevel.model_onhide();//hide onlevelflag::wait_till("power_on");//wait for power onlevel.model_onshow();//show onlevel.model_offdelete();//delete off
Are you trying to turn on a light entity?
Dedrix:
Are you trying to turn on a light entity?
Unfortunately no, there are plenty of tutorials for a power light entity. I'm trying to have some "emissive models" replace "non emissive models" when the power comes on, That's all [ Have a model be replaced with another, when the power comes on ]