need help with vsoverride

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

master_newbie

2D Mod Fan
Sep 6, 2003
272
0
0
I want to have vehicles in my DM map but only 1 at a time for each vehiclefactory
however the vehicles immediatly respawn

Ive tried setting brespawn to false but then no vehicles spawn at all

and when I use the AS factorys the vehicles spawn when the map starts but they dont respawn when they are destroyed :-(
 

PapaBear

Old. Very Old.
Oct 26, 2003
158
0
16
62
SF Bay Area, CA
www.whatacharacter.net
Parser said:
Did you try setting bRespawnWhenDestroyed to true under ASVehicleFactory? This certainly works with the turrets I've tried it with, so it should work for vehicles too. :)

These settings do not exist for ONS Vehicles, unfortunately.

Anyhoo, I'm have the same Q -- How can I keep only 1 vehicle of a certain type on the map at any given time. Right now, when someone (or something) moves the vehicle from the spawn point, another pops up into its place immediately.

I've tried editing your script to place a counter in there (you know, if i>1 yaddi yaddi i++; ) without sucess as I don't enough about the programming in Unreal to keep the variable global and "relevant". (And no, I didn't use i... :p )

Anyway, here's hoping for an answer...

And thanks for all the work, so far...
 

Parser

Hello
May 7, 2002
1,531
0
0
120
England baby!
fraghouse.beyondunreal.com
Huh? What do you mean the settings don't exist? Whether they exist or not in an ONS vehicle is irrelevant. The code for respawning is in the ASVehicleFactory actor.

All you need to do is plonk VSOverride in your map, set bRespawnsVehicles to false, use ASVehicleFactory to spawn your ONS vehicles and in that actor set bRespawnWhenDestroyed to true. It works fine, just tried it in Raceway2.