Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Vehicle Rembering its "Name" after respawn...

  1. #11
    Quote Originally Posted by pogoman979 View Post
    alternatively you can set the vehiclevarname with setvehicleinit, which is how i do it. ie
    Code:
    _veh setvehicleinit
    '
    name = this;
    this setvehiclevarname "name";
    ';
    processinitcommands;
    this has full jip support and broadcasts to all clients etc.
    So this string of text just gets entered into the init line for the vehicle? I am guessing I would just put a ";" after the line that executes the respawn script, then add this line of code, followed by it's ";" as in:

    "line of code"; "other line of code"; <---entered in the init field

    Right? Thanks a lot guys!

  2. #12
    Noob here, but I'm trying to do something similar to Eclipse. When I put this code in the vehicle's initialization box I get a "Local Variable in Global Space" error.

    @Eclipse, did you figure this out?

    Thanks in advance.

  3. #13
    use this respawn script, it works great, and all the parameters can be edited according to how you want it to work.

    Good luck!

  4. #14
    Thanks for the quick reply. Didn't see the script though.

  5. #15
    Once your unit is killed, just take the initial location. I made this for one of my missions.

    Code:
    !alive blablabla
    deleteVehicle nameofyourvehicle;
    nameofyourvehicle = "classnameofyouvehicle" createVehicle [position,ofyour,vehicle];
    U may also use

    Code:
    nameofyourvehicle setdir azimut;
    Last edited by Ashka; Aug 14 2009 at 06:10.

  6. #16
    Quote Originally Posted by Raddik View Post
    Thanks for the quick reply. Didn't see the script though.
    lol... that's bc I had a moment of brilliance and never pasted the link I copied... here is the link to the script:

    http://forums.bistudio.com/showthrea...respawn+script

    NOW... there you go!

  7. #17
    Thanks for the link!

Page 2 of 2 FirstFirst 12

Posting Permissions

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