Quote (alex32381)
потому что этот скрипт недоработанный, у меня он не пашет, как бы я не старался.
Ты его неправильно составил.
Почитай оф. справку:
Quote
iObjectRefresh(OBJ_X,string)
Change the resources (3d models, textures, etc) associated with the specified object.
This function is typically used to update SkinMesh, RigidBody, SkyBox or Sprite object
geometry/aspect run-time, for example after the new artwork has been downloaded from
a server (website) by using the iFileDownload() function.
For an example of usage, see the demo project called WebDownloadDemo.3dr
OBJ_X = object handle.
string = path to the folder containing the new resource file or files. If a local path is specified (e.g. ".\\") this is relative
to the current 3D Rad folder or your compiled project folder.
IMPORTANT: the destination object (OBJ_X parameter) will try to load the proper file or files from the specified folder.
Make sure the destination folder contains the files to be loaded with the proper names (for example, a SkinMesh
object will try to load a files named 000_mesh.x, 000_shadow.x etc).
NOTE: if the destination folder is a SoundEffect or a SoundSource object, the file path must include the file name to use
to replace the current sound.
NOTE: if the object is a SkinMesh based on frame-by-frame animation, the new
assets must provide the same number of frames.
NOTE: this function doesn't work for RigidBody objects that use a bounding sphere
for collision detection.