Open jaj22 opened 1 year ago
I like this idea. Would be cool to add some sort of progress bar to it and not make it instant. Like some degree of randomness on how easy it is to steal a car haha.
Has anyone tried a simple object to see if we can add actions to them?
Has anyone tried a simple object to see if we can add actions to them?
Vanilla addAction
doc says simple objects (and by extension the super-simple, I tested) ain't allowed (no such restriction on ACE3 for either type, FWIW), and I just tested that it doesn't work, returning -1
.
Old Antistasi used to do this for vanilla civilian cars for performance reasons. It broke with 2.06 because you could no longer see actions on simulation-disabled vehicles. Workaround would be to put a "steal vehicle" action on the player that shows when you're looking at a civvie car.
Collision behaviour is probably acceptable: Simulation-disabled cars are basically rocks. If not, epeContactStart does fire on the disabled vehicle, so we could just hook that as an alternative wake-up method.