wh1sp3r Posted February 2, 2010 Posted February 2, 2010 Hi, pleaqse, how can i get terrain handle from editor ? i would like to set height of object, thanks require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) function object:Update() height = TerrainElevation(terrain,10,10) object.model:SetPositionf( 10,height,10 ) end end Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.