Page 5 of 18 FirstFirst 12345678915 ... LastLast
Results 41 to 50 of 172

Thread: Simple Vehicle Respawn Script

  1. #41
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    New version up. See first post.
    The script now supports setting the INIT of the respawned vehicle.
    Vehicles will now also respawn with it's original name.

  2. #42
    Staff Sergeant
    Join Date
    Jul 16 2009
    Location
    San Antonio, Tx.
    Posts
    208
    Great script..

    I'm running a server that I'm modifying the layout on the A10's.

    The script works great, but when the vehicle respawns, it's loadout is default.

    I've tried having the init before the call to your script, and inside the call to your script. iestraight from mission.sqf

    INIT="veh = [this, 30, 120, 0, FALSE, FALSE, ""this removeweapon ""FFARLauncher_14""; this removeweapon ""BombLauncherA10""; this removeMagazine ""4Rnd_GBU12"";this removeweapon ""MaverickLauncher""; this removeMagazine ""5Rnd_Maverick_A10""; this addWeapon ""BombLauncher""; this addMagazine ""6Rnd_GBU12_AV8B""; this addweapon ""HellfireLauncher""; this addMagazine ""8Rnd_Hellfire""; this addWeapon ""FFARLauncher""; this addMagazine ""38Rnd_FFAR""] execVM ""vehicle.sqf"""


    BTW, I tried this as well:

    veh = [this, 15, 10, 5, TRUE, FALSE, "this setDammage 0.5"] execVM "vehicle.sqf"

    The vehicle would respawn, but still be at full health.
    What am I missing?


    Thanks for your help.
    Last edited by Big_Daddy; Jul 16 2009 at 15:29.

  3. #43
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    That was very strange.
    I updated this post before Armaholic updated theirs, so maybe you got hold of version 1.4. Could you please check inside the script if it says v1.5?

    Or perhaps contact me on PM so you can email me the mission and let me have a look at it.

  4. #44
    Staff Sergeant
    Join Date
    Jul 16 2009
    Location
    San Antonio, Tx.
    Posts
    208
    Yes, 1.5.. I even re-downloaded it thinking there was already a bug fix..



    ---------- Post added at 12:02 PM ---------- Previous post was at 10:58 AM ----------

    Ok.. I think I got it figured out.. seems it WAS all me..

    too many quotes and semicolons.. here's the init that works for me..

    PHP Code:
    this removeweapon "MaverickLauncher"this removeWeapon "5Rnd_Maverick_A10"this addMagazine "6Rnd_GBU12_AV8B"this addWeapon "BombLauncher"this removeweapon "BombLauncherA10"this removeMagazine "4Rnd_GBU12"this addweapon "HellfireLauncher"this addMagazine "8Rnd_Hellfire"this removeweapon "FFARLauncher_14"this addWeapon "FFARLauncher"this addMagazine "38Rnd_FFAR"veh = [this15105TRUEFALSE"this removeweapon ""MaverickLauncher""; this removeWeapon ""5Rnd_Maverick_A10""; this addMagazine ""6Rnd_GBU12_AV8B""; this addWeapon ""BombLauncher""; this removeweapon ""BombLauncherA10""; this removeMagazine ""4Rnd_GBU12""; this addweapon ""HellfireLauncher""; this addMagazine ""8Rnd_Hellfire""; this removeweapon ""FFARLauncher_14""; this addWeapon ""FFARLauncher""; this addMagazine ""38Rnd_FFAR""" execVM "vehicle.sqf" 

    You have to add the weapons and ammo in both places..

    Also, you have to make sure to remove the final semicolon.

  5. #45
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    Oh.. yeah. Adding init lines to the script will only affect the respawned vehicle. Not the original. You'll have to add that too...

    I thought of putting it all in the script, but I decided it was a better idea to let the user choose if the vehicle should respawn in another state then it was from the beginning.

    Thanks for getting back on that.

  6. #46
    Staff Sergeant
    Join Date
    Jan 3 2006
    Location
    Germany - Rhineland Palatinate
    Posts
    268
    I'm having problems with the respawn delay. The vehicle respawns after 5 seconds whatever delay time i set.

    veh = [this, 30, 120, 0, FALSE, FALSE] execVM "vehicle.sqf"

    This is correct, right? I first thought there was a problem with the added respawn effect.

    ( yes, i have 1.5, dled it a couple of minutes ago from armaholic )

  7. #47
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    Quote Originally Posted by Enforcer1975 View Post
    I'm having problems with the respawn delay. The vehicle respawns after 5 seconds whatever delay time i set.

    veh = [this, 30, 120, 0, FALSE, FALSE] execVM "vehicle.sqf"

    This is correct, right? I first thought there was a problem with the added respawn effect.

    ( yes, i have 1.5, dled it a couple of minutes ago from armaholic )
    I sent you a PM with my email. Could you send me your mission so I might take a look at it?

  8. #48
    Staff Sergeant
    Join Date
    Jan 3 2006
    Location
    Germany - Rhineland Palatinate
    Posts
    268
    Wrong email?

  9. #49
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    Nope.. got it.

  10. #50
    I am still having the same issue, it will load out the vehicle on map load but the trigger doesnt work afterwards.
    MAJ Larson
    Commanding Officer
    20th Special Forces Group
    Http://www.20thsfg.com/

Page 5 of 18 FirstFirst 12345678915 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •