Help with Dynamic Spawned Vehicles

delpi

Well-Known Member
I can't seem to figure this out and I'm hoping someone could help me.

I put a slightly modified version of Gorsy's Care Vehicles on my server. Basically specific spot where motorcycles spawn at each server reboot.

Everything is working great, except for one issue. These can be salvaged.

I'd like to make them unsalvagable. I tried to damage the wheels and fuel but its not working. Is there some other command I need to send?

_bam setHit ["wheel_1_1_steering", 0.50];
_bam setHit ["wheel_1_2_steering", 0.50];
_bam setHit ["palivo", 0.50];
 
Easiest way you can do this in your fn_selfaction with in the salavage vehicle part
!(_cursortarget isKindof "Motorcycle")
 
Thanks.

I know how to do that and will probably secify it as an exact vehice.


Does anyone else know another way? I was hopingto be ale to set a variable when I spawned the vehicle that I could see later. However, that is client vs server. Not sure how that gets passed (assuming it doesn't).

As I setp therest, I'm assuming the various mission and AI scripts will have the same issue of savagable vehicles. If Ihave to restrict those to vehicles that aren't used, it will get tricky.
 
For anyone else looking to do this, I got it to work.

In the server PBO where the vehicle is spawning, I added a variable to it called fake and set it to true.

Then in the check for whether you can work on a vehicle, I look for not that variable.

Works like a charm.
 
Back
Top