| Blockland Forums > Suggestions & Requests |
| Spy Stuff |
| << < (2/2) |
| GhostStar:
--- Quote from: Mysteroo on October 15, 2013, 11:32:21 AM ---Why does this not exist yet? That would be awesome --- End quote --- because it would be extremely complicated and hard to code. you are literally changing a vehicle from a plane to a car. can you imagine the amount of time it would take to code the transformation sequence. but ya it would be cool |
| Pah1023:
--- Quote from: GhostStar on October 15, 2013, 11:43:26 AM ---because it would be extremely complicated and hard to code. you are literally changing a vehicle from a plane to a car. can you imagine the amount of time it would take to code the transformation sequence. but ya it would be cool --- End quote --- Did this in this reply, not sure if it works, or could be made more efficiently. --- Code: ---package planeVehicle { function armor::onTrigger(%data,%obj,%slot,%val) { if(%obj.getClassName() $= "Player") { if(%slot == 0 && %obj.isMounted() && %) { %veh = %obj.getObjectMount(); if(%veh.getDatablock().isTransitionCar != 1 || %val != 1) return Parent::onTrigger(%data,%obj,%slot,%val); %spawnBrick = %veh.spawnBrick; %transform = %veh.getTransform(); %velocity = %veh.getVelocity(); %veh.delete(); if(isObject(%veh) && %obj.getDatablock().getName() $= "PlaneVehicleCarMode") { %this = new Vehicle() { datablock = "PlaneVehiclePlaneMode"; size = "1 1 1"; }; } else if(%obj.getDatablock().getName() $= "PlaneVehiclePlaneMode") { %this = new Vehicle() { datablock = "PlaneVehicleCarMode"; size = "1 1 1"; }; } %this.setTransform(); %this.setVelocity(%velocity); %this.spawnBrick = %spawnBrick; %spawnBrick.vehicle = %this; %this.mountObject(%obj, 0); } } return Parent::onTrigger(%data,%obj,%slot,%val); } }; --- End code --- Almost certain this wont work, not sure how to create a vehicle object, also if I were to really make it, I would add an animation for it. |
| xSetrox:
But someone made a change vehicle event... |
| Navigation |
| Message Index |
| Previous page |