View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004185||Multi Theft Auto : San Andreas||Server||public||2009-04-18 00:24||2018-10-22 23:52|
|Target Version||Fixed in Version|
|Summary||0004185: Door States 1 and 3 need a “love tap” or should make the door unclosable|
The door states 1 and 3 don't work.
Another - imho - better idea would be to make the door unclosable in states 1 and 3 so that they've no other choice than be free swinging.
This feature would be nice for an open/close cargo bay script.
Btw the hood springs already open if it's state is set to 3. (But not for 1)
|Tags||No tags attached.|
We're proposing adding setDoorAngle and various associated functions. These may have to wait till post 1.0 now though.
Requires double calling.
For state 1
setVehicleDoorState(vehicle, door, 1) --to make sure we get intact state
For state 3
setVehicleDoorState(vehicle, door, 2) -- will make the door damaged
Strangely these 2 states requires to be called in combinations to get the desired effect. I believe something can be done in the code of MTA using the same technique to fix the bug.
The code, if somebody needs:
_setVehicleDoorState = setVehicleDoorState
Still having problems getting the door states. Because if door effect state is 1, getVehicleDoorState returns 3, so this is up to MTA team to fix.