Reply To: Mafia 2 beacon issue
Home / Forums / Modders Corner / Mafia Editing / Mafia Mod Request / Mafia 2 beacon issue / Reply To: Mafia 2 beacon issue
Sorry to reactivate this old closed topic but I just saw it
Don’t worry ocram, I closed it because of no way to help
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″>
So cole, if you want to keep the police car beacon switched on when you are outside of the car
use the injector with my commented script bellow
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″>
@eXistenZ
en:it doesn’t matter if we do not know the NPC entity, if we had an interaction with it once …
fr
i on a une interaction avec une entit̮̩, il n’est pas grave de ne pas connaitre le nom de l’ entit̮̩ utilis̮̩ par le jeu …
for example F7.lua
— A little gift for Cole from Ocram
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>
— as an example, to activate only from inside the car at first !
— here you store inside the variable ‘car’ the ”unknown” car entity name
if m==nil then car=game.game:GetActivePlayer():GetOwner() end
— now with the trick above the variable ‘car’ will not be overiden no more as it is only taken when variable ‘m’ is activated/created for the first time
if m==nil then m=0 end
m=m+1
if m=
then m=1 end
if m==1 then CommandBuffer:Insert(l_6_0,{function(l_1_0)return car:SetBeaconLightOn(true)end})end
if m==2 then CommandBuffer:Insert(l_6_0,{function(l_2_0)return car:SetBeaconLightOn(false)end})end
— you can now activate this script as many time you want from inside or outside the car
— It will light the police car beacon on or off, enjoy
Should I use one LUA file or two for these commands ?
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″>
And please post a link to the best Injector’s version, thanks
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/wink@2x.png 2x” width=”20″ height=”20″>
Cole

i on a une interaction avec une entit̮̩, il n’est pas grave de ne pas connaitre le nom de l’ entit̮̩ utilis̮̩ par le jeu …
then m=1 end