LeoRigger
New member
Using a script file (angelscript ".as") I am able to insert a crane in a certain position using "race", drive it using setValueAtWaypoint function and it works ok.
Now I want to control the crane using script, to slew, move boom and hook up/down, pick up the load etc. but I can´t find in documentation on how to do that using scripts.
How can I do it?
I can insert the crane and active it using:
VehicleAIClass @CurrentTruckai = game.spawnTruck("Terex-RT-130.truck" ,vector3(0, 0, 0) , vector3(0, 0, 0)).getVehicleAI();
CurrentTruckai.setActive(true);
I was wondering if we have something like this:
CurrentTruckai.setValueProperties(2)=30; // Rotate the crane 30 degrees clockwise
CurrentTruckai.setValueProperties(3)=4.85; // Put hook block 4.85m form boom tip
Now I want to control the crane using script, to slew, move boom and hook up/down, pick up the load etc. but I can´t find in documentation on how to do that using scripts.
How can I do it?
I can insert the crane and active it using:
VehicleAIClass @CurrentTruckai = game.spawnTruck("Terex-RT-130.truck" ,vector3(0, 0, 0) , vector3(0, 0, 0)).getVehicleAI();
CurrentTruckai.setActive(true);
I was wondering if we have something like this:
CurrentTruckai.setValueProperties(2)=30; // Rotate the crane 30 degrees clockwise
CurrentTruckai.setValueProperties(3)=4.85; // Put hook block 4.85m form boom tip