voilà en fait lorsqu'on active un levier, deux murs glissent chacun d'un côté et ne roue dentée tourne, voilà mon script
Citation
begin Saneruhn_a
float timer
short start
if ( MenuMode == 1 )
return
;don't run time in Menu Mode. Very bad.
endif
if ( OnActivate == 1)
if ( start == 0 )
set start to 1
endif
return
endif
if ( start == 0 )
return
endif
if ( timer < 9 )
if ( Timer > 1 )
if ( start == 1 )
PlaySound "Door Stone Open"
Playsound "Machinery"
playgroup "idle2"
Set Start to 2
endif
endif
endif
if ( Timer > 14 )
if ( start == 2 )
PlaySound "Door Stone Open"
Playsound "Machinery"
endif
in_dwrv_scope20_a->RotateWorld Z 360
in_dwrv_wall10_a->MoveWorld X -192
in_dwrv_wall10_b->MoveWorld X 192
set start to 3
endif
if ( OnActivate == 1 )
if ( start == 3 )
playgroup "idle3"
endif
endif
end
float timer
short start
if ( MenuMode == 1 )
return
;don't run time in Menu Mode. Very bad.
endif
if ( OnActivate == 1)
if ( start == 0 )
set start to 1
endif
return
endif
if ( start == 0 )
return
endif
if ( timer < 9 )
if ( Timer > 1 )
if ( start == 1 )
PlaySound "Door Stone Open"
Playsound "Machinery"
playgroup "idle2"
Set Start to 2
endif
endif
endif
if ( Timer > 14 )
if ( start == 2 )
PlaySound "Door Stone Open"
Playsound "Machinery"
endif
in_dwrv_scope20_a->RotateWorld Z 360
in_dwrv_wall10_a->MoveWorld X -192
in_dwrv_wall10_b->MoveWorld X 192
set start to 3
endif
if ( OnActivate == 1 )
if ( start == 3 )
playgroup "idle3"
endif
endif
end
voilà donc je sais qu'il y a beaucoup d'erreurs oui oui je me doute bien parceque là ça fait n'importe quoi et les objets finissent par même plusbouger du tout !
alors j'explique
le Wall10_a se déplace sur l'axe x de 4416 à 4224
le Wall10_b se déplace sur l'axe x de 4544 à 4736
le scope20_a tourne sur lui-même en Z de 0° à 170°
tout ça en même temps !
et ce lorsque j'active le levier, lorsque je le réactive, plus rien ne se produit, or le levier doit revenir à sa position initiale.
voilà merci de m'aider parceque là j'ai essayé pleins de fonctions basée sur les scripts des leviers dwemer mais ça m'enerve ! lol