Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: 4K. on Mar 21, 2016, 12:05 PM

Title: Spawning Bikes
Post by: 4K. on Mar 21, 2016, 12:05 PM
How can I spawn bikes without making them fall. When the explode and respawn they fall from a little height and maybe this makes them fall. I tried editing the z coordinates of the bikes but sometimes they are underground and sometimes have fallen.. So can someone help me to keep them standing when they fall?
Btw I'm referring to all bikes of VCMP.

Ty.
Title: Re: Spawning Bikes
Post by: KAKAN on Mar 21, 2016, 01:58 PM
Edit the angle of that bike. That worked for me.
Title: Re: Spawning Bikes
Post by: . on Mar 24, 2016, 12:20 AM
Just spawn them a little lower than the player position.
_veh <- null;

function onPlayerCommand(player, cmd, text)
{
    if (_veh) _veh.Delete();
    // Dummy position in front of the player
    local pos = Vector(player.Pos.x - 5.0, player.Pos.y, player.Pos.z);
    // Decrease the spawn position height by 0.5 units
    pos.z -= 0.5;
    // Use that position to spawn
    _veh = CreateVehicle(191, player.World, pos, 0, 0, 0);
}

If you see them fall down straight when you spawn them then that's probably the case.