OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Relentless on 03 Aug 2007, 14:49:37

Title: vehicle respawn
Post by: Relentless on 03 Aug 2007, 14:49:37
Ok i am a little confused about a few points on vehicle respawn, i have set up markers in both respawn areas both named,  "respawn_vehicle_west"
             "respawn_vehicle_east" ,
i have used this command , "car respawnVehicle [30];" but i am getting no joy.
So i am a little confused where to put this line of text, do i put it in the description box on the unit in the editor or do i add the text to description ext?
Also do i have to add this command for every vehicle on the map or does one size fit all.
Thanks in advance :)
Title: Re: vehicle respawn
Post by: SyB on 09 Aug 2007, 17:15:57
you still having a problem with this?
Title: Re: vehicle respawn
Post by: Relentless on 11 Aug 2007, 21:13:35
Hi yeah mate i have been offline for a week cos my 1950 died, but now im back and i still cant get the buggers to respawn, and this is the only thing stopping my first map going on beta release  ??? Any help would be cool,  :)
Title: Re: vehicle respawn
Post by: Mr.Peanut on 14 Aug 2007, 17:00:23
Put in the init field for each vehicle you want to respawn:
Code: [Select]
this respawnVehicle [x,y]where x is the delay in seconds(set to -1 for default value from description.ext) and y is the number of allowable respawns(set to 0 for infinite).
Title: Re: vehicle respawn
Post by: Relentless on 18 Aug 2007, 14:21:16
Thanks mate going to try this now  :)

Dammit still wont respawn, what the hell am i doing wrong here  ???

The insertion the ''this respawnVehicle [-1,30]'' in every vehicles init field as suggested does not require any text modifications to say the ext file, does it?
Im just trying to find out why the simplest of instructions does not want to work so im figuring it is something i may have done that may be causing a conflict somewhere, but at the moment im buggered if i know. Thanks for the help mate anyway.
Title: Re: vehicle respawn
Post by: SyB on 19 Aug 2007, 16:26:22
Have you read the respawnVehicle (http://community.bistudio.com/wiki/respawnVehicle) article on the biki?

And here's a BIS forum thread on it's use I made a while back... Another Vehicle Respawn (http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=2b0e835871a2bdc9a5542ffaf402ea45&act=ST&f=73&t=64097&st=)

basically, there are 2 methods of vehicle respawn.

1. Use the built-in 'respawnVehicle' command and
2. use the 'createVehicle' command

it's just my opinion but i like the 'respawnVehicle' usage... the problem with both methods is that it requires extra scripting for it to 'look good' - that is you want the vehicle to respawn in the same place pointing in the same direction etc.

to get basic respawn working with the 'respawnVehicle' command it's as Mr. Peanut said, just put the command 'this respawnVehicle [300,5];' in the init line.
Also, you need base respawn set (preferable to instant) in the 'description.ext' file and you need a marker at your various bases for the given side as per the biki...

have a look at the coding in this (http://ftp://203.97.251.53/vRespawn_v1c.Sara.pbo) example mission if you want more complicated 'respawnVehicle'... note:- This ftp link is not available 24/7...

cheers, Synide
Title: Re: vehicle respawn
Post by: Relentless on 22 Aug 2007, 12:33:24
Cheers Sy, great help that sorted me right out bud  :)