-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghostcars: /ghost sets players driven vehicle as ghost #44
base: master
Are you sure you want to change the base?
Conversation
scripts/module/ghostcars.nut
Outdated
} | ||
|
||
function onPlayerExitVehicle( player, vehicle ) { | ||
vehicle.IsGhost = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this also happen if a passenger left your car?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yeah, probably. I'll add a check for vehicle.Driver
- should be == null
if the driver is the one leaving. Or == player.ID
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved?
|
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.