Hello Community,
I have a selection of weapons that i must import from a function and then take each one of them and apply some animations to them. I have this code for loading the weapon objects, but the animation part that is in real time i don't know how can i retrieve the each animation information about the each weapon object separately.
Thank You Very Much!
`TEST!!!
for weapimp = 1 to 10000
if file exist("Media Packs\Scripts\Weapons\" + str$(weapimp)) = 1
open to read 5, "Media Packs\Scripts\Weapons\" + str$(weapimp)
if file open(5) = 1
read string 5, text1$
read string 5, weaponlocation$
read string 5, blank1$
read string 5, text2$
read string 5, blank3$
read string 5, text3$
read string 5, text4$
read string 5, idleanimationstart$
read string 5, text5$
read string 5, idleanimationend$
read string 5, blank4$
read string 5, text6$
read string 5, text7$
read string 5, forwardanimationstart$
read string 5, text8$
read string 5, forwardanimationend$
read string 5, blank5$
read string 5, text9$
read string 5, text10$
read string 5, backwardanimationstart$
read string 5, text11$
read string 5, backwardanimationend$
read string 5, blank6$
read string 5, text12$
read string 5, text13$
read string 5, fireanimationstart$
read string 5, text14$
read string 5, fireanimationend$
read string 5, blank7$
read string 5, text15$
read string 5, text16$
read string 5, reloadanimationstart$
read string 5, text17$
read string 5, reloadanimationend$
read string 5, blank8$
read string 5, text18$
read string 5, text19$
read string 5, retrieveanimationstart$ `````````
read string 5, text20$
read string 5, retrieveanimationend$ ```````````
read string 5, blank9$
read string 5, text21$
read string 5, text22$
read string 5, holsteranimationstart$ ``````````
read string 5, text23$
read string 5, holsteranimationend$ ````````````
read string 5, blank10$
read string 5, text23$
read string 5, text24$
read string 5, runninganimationstart$ ````````````
read string 5, text25$
read string 5, runninganimationend$ `````````````
read string 5, blank11$
read string 5, text26$
read string 5, text27$
read string 5, weaponfiresoundlocation$
read string 5, blank12$
read string 5, text28$
read string 5, weaponreloadsoundlocation$
read string 5, blank13$
read string 5, text29$
read string 5, weaponequipsoundlocation$
read string 5, blank14$
read string 5, text30$
read string 5, weaponholstersoundlocation$
read string 5, blank15$
read string 5, text31$
read string 5, text32$
read string 5, weapondiffusetexturelocation$
read string 5, blank16$
read string 5, text33$
read string 5, weaponnormaltexturelocation$
endif
close file 5
//LOAD WEAPONS
inc weaponnumber
load object weaponlocation$, weaponnumber
//POSITION WEAPONS
lock object on weaponnumber
yrotate object weaponnumber, 180
position object weaponnumber, 12.4786376953, -174.484283447, -9.1628723145
loop object weaponnumber, 55, 100
//LOAD WEAPONS MEDIAS
//SOUNDS
for sndload = 9115 to 10051
if sound exist(sndload) = 1
delete sound sndload
ENDIF
load sound weaponfiresoundlocation$, sndload
NEXT sndload
//TEXTURES
//DIFFUSE
inc diffusetextures
load image weapondiffusetexturelocation$, diffusetextures
texture object weaponnumber, diffusetextures
//NORMAL
inc normaltextures
load image weapondiffusetexturelocation$, normaltextures
texture object weaponnumber, normaltextures
ENDIF
for weaphide = 7001 to weaponnumber
if object exist(weaphide) = 1
hide object weaphide
endif
NEXT weaphide
NEXT weapimp
`TEST!!!
endif
Alex Matei CEO
www.alexmatei.com