Reply To: Script Car Entity
Home / Forums / Modders Corner / Mafia Scene Modders / eXistenZ34’s Mods / Script Car Entity / Reply To: Script Car Entity
yes zahar999, this is true, this script was a little old and there is even others errors.
[img]//i46.tinypic.com/sesncw.jpg&key=0ac15807c3ec70f90712d0dc34d670af41d4ee7d130f48034d01f805a7635afe[/img]
[align=center:7bgc71qt]Edit : this is the site that is not writing what I write
[/align:7bgc71qt]
[img]//i48.tinypic.com/14avn94.jpg&key=bae0b29d5a5dd4a32cf0cf27eeadcd774836254f5cc736b26a723c827e70d07e[/img]
[hr:7bgc71qt][/hr:7bgc71qt]
the site does not take into account the hooks (in red
) because they are considered as Boardcode.
[img]//i49.tinypic.com/21lsrxy.jpg&key=bb5f122945fcf5b33fb2a2bbc8d3a6298b1ede3e6d33e29e2f8eeb289c3b5e2f[/img]
[hr:7bgc71qt][/hr:7bgc71qt]
But the command for unlock doors, is not good *
.
game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName(car)):SetDoorFree()
*
(I have already said you on playground.ru)
“SetDoorFree(
xx
,
yy
)
” is used only with:
game.game:GetActivePlayer():GetOwner()
:SetDoorFree(
xx
,
yy
)
or game.entitywrapper:GetEntityByName(“Car_Name_Entity”)
:SetDoorFree(
xx
,
yy
)
xx = N̡̉door 0 or 1 or 2 or 3 , yy = true
[img]//i50.tinypic.com/2r3ec81.jpg&key=d29b94423a7691d7ff4a7358afc9f9c28bdab1aa0036db50c0e958f7816eb8ab[/img]
“game.game:GetActivePlayer():GetOwner()
“: applies to all cars in traffic without knowing their “Car_Name_entity”, as a Vito (player) is in the car.
“game.entitywrapper:GetEntityByName(“Car_Name_Entity”)
“: applies only to the “Car_Name_Entity” although Vito (player) is not in the car.
So this command should be added in the script
*
above, but written like that.
game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName(“Car_Name_Entity”))
*
(this avoids having to break the window to get into the car.)
