Author Topic: Vehicle Spawn Update  (Read 585 times)

Someone should make a mod that adds an option of whether it can be driven or not so that way we can have vehicles that are broken down.


ooh that'd be neat

could be done as a mod, but it'd make twice as many vehicle datablocks

unless you executed it a different way

i was going to suggest getting the gas mod and eventing the vehicle to have no gas when it spawns, but then i realized players could just spawn gas cans and fill it back up
oh and it would mess up all the other vehicles too (theyd have limited useability)

What about the new setVehiclePowered event? (it's default)

ooh that'd be neat

could be done as a mod, but it'd make twice as many vehicle datablocks

unless you executed it a different way

What?

This is a simple thing to do, would only take a few lines of code lol.

What?

This is a simple thing to do, would only take a few lines of code lol.
which is why i crossed out that part

What about the new setVehiclePowered event? (it's default)
still allows players to get in

package noRide
{
   function Armor::onMount(%this,%player,%obj,%a,%b,%c,%d,%e,%f)
   {
      if(isObject(%obj.spawnBrick) && isObject(%player.client) && %obj.getDatablock().rideable)
      {
         if(%obj.spawnBrick.noRide)
            return;
      }
      Parent::onMount(%this,%player,%obj,%a,%b,%c,%d,%e,%f);
   }
};
activatepackage(noRide);

now someone add an event  to toggle "noRide" on a brick
untested