SceptreOfficial / Simplex-Support-Services

Support system for Arma 3
Other
26 stars 12 forks source link

Add ability to remove respawn of vehicle #28

Closed Reidond closed 4 years ago

Reidond commented 4 years ago

So i wanted a functionality of disabling respawn when driver dies. For example when you have external respawning tools.

SceptreOfficial commented 4 years ago

Respawn can already be disabled if set to -1. If I'm following your code right (correct me if I'm wrong), then this is just redundant.

Reidond commented 4 years ago

Yeah but i forgot to mention that vehicle deletes after crew death, this PR removes that.

private _respawnTime = _entity getVariable ["SSS_respawnTime",-1];
if (_respawnTime < 0) exitWith {
    deleteVehicle _entity;
};

👆 code deletes vehicle

SceptreOfficial commented 4 years ago

The 'entity'/namespace is deleted. The actual vehicle can remain if the CBA setting is set. What are you trying to accomplish?

Reidond commented 4 years ago

Shit i misread _entity as _vehicle 😅. Gotta need another sleep!