Hi, I need an lua event that change the mesh of an flyer when dispense an vehicle. It is for an laatc that drops (dispense) an atte, so the first mesh will have the atte mesh under the laatc and the second will haven't it. Someone can helpme? thanks!
EDIT: I found an code that works perfectly replacing the mesh but in the new spawned vehicles, so not work with the acutal loaded vehicles
Code: Select all
OnCharacterDispenseControllable(
function (player, controllable)
SetClassProperty("rep_fly_laatc", "GeometryName", "rep_fly_laatc_drop")
end
)
There is any way to get these mesh ghange in the actual unit that fires the weapon?