Change mesh with lua event
Posted: Sat Dec 27, 2014 1:19 am
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
There is any way to get these mesh ghange in the actual unit that fires the weapon?
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
)