Page 8 of 18 FirstFirst ... 456789101112 ... LastLast
Results 71 to 80 of 172

Thread: Simple Vehicle Respawn Script

  1. #71
    Or just select Non Playable from the dropdown.

  2. #72
    WOW Thank You VERY MUCH! For the name: it doesn't change! This script resolve all my trubles with other scripts!!! Thank You! Thank You! Thank You! Thank You! Thank You! Thank You!

  3. #73
    Hello, can anyone help a novice please? I'm trying to combine camo.sqs with this vehicle respawn script. I can reskin an A10 but I need to have it respawn with the same skin.

    this exec "camo.sqs";
    veh = [this] execVM "vehicle.sqf"

    edit-I should learn to read more carefully.
    this exec "camo.sqs"; veh = [this, 0, 0, 0, FALSE, FALSE, "this exec ""camo.sqs"""] execVM "vehicle.sqf"

    Sorted the above now. Great work TOPHE

    2nd edit- Is there a way to combine the above line with this line below?

    null = this execVM "ammo.sqf"; veh = [this, 0, 0, 0, FALSE, FALSE, "null = this execVM ""ammo.sqf"""] execVM "vehicle.sqf"
    Last edited by interox; Sep 23 2009 at 15:57.

  4. #74
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    @M3th0s
    Thanks man, I'm happy it makes you happy

    @interox
    I don't have ArmA up now but you could try something like this:

    null = this execVM "ammo.sqf"; this exec "camo.sqs"; veh = [this, 0, 0, 0, FALSE, FALSE, "null = this execVM ""ammo.sqf""; this exec ""camo.sqs"""] execVM "vehicle.sqf"

    Not sure it will work, but give it a go. Another solution might be to just combine the ammo.sqf and camo.sqs scripts into one, unless that takes too much work (since one is in SQS and one in SQF). That way you will only have to worry about a single script.

  5. #75
    Thanks for your reply. Ive run into another problem though. Ive added 2 a10's and 4 f16's to domination map. The a10's respawn correctly when destroyed on the airfield insitu however the f16's leave a burning wreck on the airfield when destroyed and then respawn on top of the wreck. Can you help?

  6. #76
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    925
    Author of the Thread
    Quote Originally Posted by interox View Post
    Thanks for your reply. Ive run into another problem though. Ive added 2 a10's and 4 f16's to domination map. The a10's respawn correctly when destroyed on the airfield insitu however the f16's leave a burning wreck on the airfield when destroyed and then respawn on top of the wreck. Can you help?
    Could you upload the mission somewhere and PM it to me?
    I could have a look at it.

  7. #77

  8. #78
    Did you find a resolution to this problem? I'm having the same issue. Script on the F16 is this:
    veh = [this, 15, 1000, 0, TRUE, FALSE, FALSE] execVM "vehicle.sqf";

    Thank you.

  9. #79
    Hello, I want to put this script in the init of a vehicle I create after the fact. As in, not in the editor. So I made a createvehicle trigger that works. I put the respawn script syntax right there in the same trigger as the createvehicle.

    a10 = ["a10", 15, 10, 5, FALSE] execVM "vehicle.sqf"

    I defined the vehicles name in the respawn script and the spawn script. The vehicle spawns just fine however once destroyed it does not REspawn. I tried the respawn script on a static (placed in editor) vehicle and it worked fne. Appreciate any help on this

  10. #80
    Rookie
    Join Date
    Oct 31 2009
    Location
    Danville, Virginia USA
    Posts
    4
    Hi Trophe,

    First, I must say, Nice Work.

    I know A LOT goes into doing this sort of thing.

    Now, my problem...

    I am a NoOb, no doubt. I have been a COD, Crysis, Company of Heroes, etc... player for years now, so I am new to anything of this nature.

    I recently purchased a dedicated server for my clan in an attempt to give us something new to play. Ofcourse, the vanilla maps that they have there are OK but aren't the bells and whistles that we like.

    I've since started looking into making us a map or 2 just for something different and I just can't seem to get the vehicles to respawn. I have read through everything here and followed the instructions to the best of my knowledge but alas, no prize.

    I am sure you are busy, but I was wondering if you, or any of you other intelligent creatures could dumb down the step by step instructions to accomplish this please.

    I have made the map, put in vehicles, in the init description box I put the veh = [this...etc...].

    After making the map and doing all of the necessary things there I go to where the map was created and then I create a description file with ArmA edit to initialize respawn and other variables then save it to that Mission folder. Then I copy and paste your vehicle.sqf file into the Mission folder.

    So far in the folder I have...

    1)Description.ext
    2)Mission.sqm
    3)Vehicle.sqf

    After seeing that I have these in there I go "back" 1 folder then right click and create PBO so that I can use this as a multi-player mission.

    I start the map, everything loads up fine, I run and jump into the chopper I created, lift off, then commence to crashing it to test to see if it respawns.

    No dice.

    I'm lost and frustrated because I know I'm not seeing the forest for the trees.

    Please steer me in the right direction.

    Again, I'm a NoOb...be gentle...

Page 8 of 18 FirstFirst ... 456789101112 ... 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
  •