Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Hello guys, I'm making script to resolve the bugs by script way for passenger shooting.
Story: When you sit to car as passenger and you have chosen weapon (e.g. ak, m4, colt, tec..) and you press H you can shoot out of car. But when you press F (Enter) there are 2 thing that'll happen.
a) You will jump out from vehicle-I've already fixed that
b) Sometimes you won't leave vehicle BUT when you press H again you won't be able to shoot from H. That's my issue.. I want to fix that..
Any ideas, tips, trick, etc.. I will be grateful for any answers!
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I'm not entirely sure, but perhaps try ClearAnimations. It seems to work for a similar bug in fixes.inc.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Do you mean the one that will move the player away from the window like they have just entered?
If it's possible to detect whether a player is passenger and presses H (not sure if it's called when a player drive-by), then setting a variable to true and if it's pressed again and the variable is true, re-put the player in the vehicle might be a possible solution.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I will do some testing and get back to you.
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
@Konstantinos
I've done detection when player drives by as passenger from car window by H variables are more likely done. And yes that reputting I have too, but I made it for OnPlayerExitVehicle, that means it gets called only when after player press F (Enter) he jump off vehicle. But I need to detect whenever the player won't leave vehicle he gets back, but he he can't use H again.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
If it detects the pressing of H without any problems when a passenger drive-by, then you got it already done with the way I said. The first time the player presses H, set it to true. If the player presses H again and it's true, re-put in vehicle and set to false.
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Yeah, I understand you, but after reput player can't driveby by using H again, until he reenter car.