Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
Eh, that's rather impossible, holding a weapon in-game and firing a weapon are two different things.
Here's a random explanation:
The ''weapon'' that the player is holding, is an object. It has been attached to the player (Here you'd say SetPlayerHoldingObject).
When somebody fires the weapon, that player does an animation (And the firing effect) while the script calculates the players firing angle to reach the point of impact.
Simply said: Cars can't fire :P (Though it could be possible to fire rockets with MoveObject & crap)
Posts: 2,027
Threads: 139
Joined: Jul 2010
Reputation:
0
like attach the weapon object to the car, then they onplayerkeystatechange will come into play so when player presses lctrl, it will fire?
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
I'm trying to say that "weapons" and "fire" have nothing to do with eachother, they're separate things. GTA SA is programmed that a player can only shoot IF he has a specific weapon hold (Object) and is on-foot. In a car, he is NOT on-foot, neither does he wields any guns (possible SMG's though, but they're still objects which don't affect the player)
Posts: 2,027
Threads: 139
Joined: Jul 2010
Reputation:
0
so only rockets will work?
and/or
setplayerholdingobject