Announcement

If you are having trouble logging in, please reset your password.
If that does not work, please use the "Contact Us" to contact an admin.

January 27, 2012, 02:57:49 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
<div><iframe width="459" height="344" src="https://www.youtube.com/embed/KG3UYPIWrjI?feature=oembed" frameborder="0" allowfullscreen="true"></iframe></div>

 




In 50 second, we see cops leaving the car and the beacon's still working. But when I drive a cop car with working beacon and when I leave it, this beacon stops. Could it be changed some way ? I mean making a beacon working even after leaving a car. Hope you'll understand.


 




Thanks for any help with that.

#1 January 27, 2012, 09:26:31 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
definitely should be/become possible, as there is a standard horn function/switch, surely a modder will 'break the code' at some point, you would think.

#2 January 27, 2012, 09:37:01 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
I know how to turn it on, but I wanna find out how to make it continuously working.

#3 January 27, 2012, 10:06:12 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
not possible with the command that is used







Quotegame.game:GetActivePlayer():GetOwner():SetBeaconLightOn(true)
she is linked to player 




should use







Quotegame.entitywrapper:GetEntityByName("name car entity"):SetBeaconLightOn(true)
the only problem we do not know ("name car entity") used by A.I

#4 July 20, 2012, 12:54:58 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
@Cole


 




Sorry to reactivate this old closed topic but I just saw it


 







Quotehttp]

 




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  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="" 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 :s 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


 




<div class="ipsSpoiler_header">



 




-- A little gift for Cole from Ocram  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="" 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


 




</div>

 

#5 July 20, 2012, 08:57:36 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteSorry to reactivate this old closed topic but I just saw it

 




Don't worry ocram, I closed it because of no way to help <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">


 


 


 







QuoteSo 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  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="" 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 :s 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


 


<div class="ipsSpoiler" data-ipsspoiler="">

<div class="ipsSpoiler_header">



 




-- A little gift for Cole from Ocram <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="" 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 ? <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="" 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 <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">


 


 




Cole


</div>

</div>

#6 July 20, 2012, 01:16:09 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Copy past the entire content of the spoiler into F7.lua .




it is only one script,( inside a lua file the --
 are just to specify a comment line and are part of the script, so the entire spoiler is the script itself )  <img src="/wp-content/uploads/invision_emoticons/tongue.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20">


 


 




For injector V6 download




link on animation topic by eXistenZ http://www.mediafire.com/?7ix394nrvoakbs5




or Link to the original project files http://code.google.com/p/mafia2injector/downloads/list

#7 August 12, 2013, 12:09:53 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Ok, I merged the topics <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">