Jump to content

[HELP] Where am i wrong?


#MacTavish

Recommended Posts

Hi all, i want to fly with SeaSparrow helicopter flexible as Hunter Helicopter (because Hunter helictoper can flip around itself and move fastly) , so i tried to set Hunters' handling settings on SeaSparrow heli. But it doesn't work (i got any error btw), help please, thanks, here is the script;

function getModelHandling( element, property )
    if isElement ( element ) and getElementsByType ( element ) == "vehicle" and type ( property ) == "string" then
        local SparrowID = 447
    	local modelID = 425
        local handlingTable = getModelHandling ( modelID )  
        local value = handlingTable[property] 
        
        if value then 
			for k,_ in pairs(value(modelID)) do
				setModelHandling(447, k, value)
			end
        end
    end
    
    return false

end

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...