ghostcars: /ghost sets players driven vehicle as ghost#44
Conversation
scripts/module/ghostcars.nut
Outdated
| } | ||
|
|
||
| function onPlayerExitVehicle( player, vehicle ) { | ||
| vehicle.IsGhost = false; |
There was a problem hiding this comment.
Wouldn't this also happen if a passenger left your car?
There was a problem hiding this comment.
Hmm, yeah, probably. I'll add a check for vehicle.Driver - should be == null if the driver is the one leaving. Or == player.ID.
|
Place them in
Fixed!
I believe it already is.
I need to test this, my theory is
Requires testing but I don't see why this would be different than usual behavior (i.e. cars are visible, have their current traits such as color1/color2, model and so on)
|

Closes #43
Idea is to set cars as ghosts. Undocumented feature but with a bit of imagination you can interpret the function as "disable collisions".
I have yet to test this code.