Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Car Entity
#1
[hr:3grwrbs6][/hr:3grwrbs6]
[align=center:3grwrbs6][size=300:3grwrbs6]Script Car Entity[/size][/align:3grwrbs6]
[hr:3grwrbs6][/hr:3grwrbs6]
[align=center:3grwrbs6]there are different possibility, depending on the command "StreamMapLine"

used and different inconvenience.
[/align:3grwrbs6]
[hr:3grwrbs6][/hr:3grwrbs6]
1 Script.
already present in FR M2
[align=center:3grwrbs6][Image: x41zkh.jpg][/align:3grwrbs6]
just need to activate and position, no inconvenience.
Quote:game.entitywrapper:GetEntityByName("Hunter"):Activate()
game.entitywrapper:GetEntityByName("Hunter"):SetPos(Math:newVector(-1314.20, 1006.21,-18.63))
game.entitywrapper:GetEntityByName("Hunter"):SetDir(Math:newVector(-1,0,0))
game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName("Hunter"))
Quote:game.entitywrapper:GetEntityByName("Escaper"):Activate()
game.entitywrapper:GetEntityByName("Escaper"):SetPos(Math:newVector(-1314.20, 1006.21,-18.63))
game.entitywrapper:GetEntityByName("Escaper"):SetDir(Math:newVector(-1,0,0))
game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName("Escaper"))

[hr:3grwrbs6][/hr:3grwrbs6]
2 Script.
For FR M2
Realized with injector in 2 step, inconvenience after activation "StreamMapLine" bodyguard Joe & Henry disappears.

[align=center:3grwrbs6][youtube:3grwrbs6]http://www.youtube.com/watch?v=9hVH-gIQ6sQ&list=UU0tznMrReaDD45edPDS8R9Q&index=8&feature=plcp[/youtube:3grwrbs6][/align:3grwrbs6]

[align=center:3grwrbs6]Download NEW Script and without error, here : http://www.mediafire.com/?e7ps0zfqe4yz9ek[/align:3grwrbs6]
#2
eXistenZ34
This line
game.sds:ActivateStreamMapLine("rtr_cardealer_load")
is not needed

and you forgot to add the script
open doors for cars
game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName(car)):SetDoorFree()
#3
yes zahar999, this is true, this script was a little old and there is even others errors.

[Image: sesncw.jpg]
[align=center:7bgc71qt]Edit : this is the site that is not writing what I write[/align:7bgc71qt]
[Image: 14avn94.jpg]
[hr:7bgc71qt][/hr:7bgc71qt]
the site does not take into account the hooks (in red) because they are considered as Boardcode.
[Image: 21lsrxy.jpg]
[hr:7bgc71qt][/hr:7bgc71qt]
But the command for unlock doors, is not good [b]*.[/b]
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
[Image: 2r3ec81.jpg]

"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 [b]* above, but written like that.[/b]
game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName("Car_Name_Entity"))

* (this avoids having to break the window to get into the car.)
#4
and another
together with many StreamMapLine for car
will loaded with enemies
for example
game.sds:ActivateStreamMapLine("rtr_car14_load")
game.entitywrapper:GetEntityByName("soldier1"):Activate()
game.entitywrapper:GetEntityByName("soldier2"):Activate()
game.entitywrapper:GetEntityByName("soldier3"):Activate()

http://www.youtube.com/watch?v=nL8cXAOMuqg
#5
yes I know in "fr_cardealer"
#6
then so

Vito soldiers

http://www.youtube.com/watch?v=ZvKbZKSgp5Y
#7
Zahar, did I see that right? Have you managed to activate the car blinkers?
#8
DvT" post=9879":1jusjjiv Wrote:Zahar, did I see that right? Have you managed to activate the car blinkers?

No Wink If you look closely, Vito is not driving the car and he is not activating the blinkers.
#9
DvT
something I do not understand the question car blinkers?

you can get any car
eXistenZ34 written your article
link to the script in the first message
#10
flasher, i thinks he mean Direction Flasher (left - right)
#11
as rahaar I don't understand "car blinkers?"

Keep in mind, that zahaar is Russian and me i'm French and we use a translator to understand.

toujours là crazy, c'est bientôt le 14. :lol: Tongue Wink
#12
oui, 2 jours!
#13
thx for tuto eXistenz

eXistenZ car blinker c'est clignotant, feu clignotant, feu de détresse

Zahar car blinker ??? ??????? : ??? ???, ??? ???, ??? ????????? ??? ?????


Forum Jump:


Users browsing this thread: 1 Guest(s)