Posted: 7th Feb 2011 14:54
I can not understand as to add the weapon to model of the hero.
The weapon is the hero is.
Tried as limb it is impossible to add.
backdrop on : cls : sync on : sync rate 30 : hide mouse
set text font "arial" : set text size 16
set text to bold : set text transparent
load object "scifiassaulttroop\scifiassaulttroop.x",1
set object specular 1,0
set object 1,1,1,1,0,0,0,0
set object texture 1,3,0
scale object 1,100,100,100
rem çàãðóçêà îðóæèÿ
load object "gun\new gun.x",2
set object specular 1,0
set object 1,1,1,1,0,0,0,0
set object texture 1,3,0
scale object 1,100,100,100
if mesh exist(100)=1 then delete mesh 100
make mesh from object 100, 2
for re=1 to 100
if limb exist(1,re)=1
add limb 1,re,100
link limb 1,re,100
offset limb 1,re,0.5,0,0
endif
next re
play object 1
rem Set Camera
autocam on
set camera range 1,10000
position camera 0,0,-200
point camera 0,0,0
set point light 0,0,300,0
do
zrotate object 2,1
rem Show Framerate
text 20,screen height()-40,desc$
fps$="DBPro Fps: "+str$(screen fps())
text screen width()-20-text width(fps$),screen height()-40,fps$
rem Update screen
sync