Hello, I am using a teleport script that requires a specific variable name. When the vehicle respawns via the Vehicle Respawn module, it renames it something else so that the teleport script no longer works. I need a way for it to re-name the vehicle the same thing.
I have tried this in the expressions of the vehicle respawn module:
(_this select 0) setVehicleVarName "MHQ1";
As well as
(_this select 0) execVM 'vehicleMHQ1.sqf';
With a bunch of different codes I put in the sqf that I found on here and other websites that have all not worked for me. Most of what I found is pretty dated.
Anyone know how I can do this?