Printable Version of Topic

Click here to view this topic in its original format

Armed Assault Info Forums _ Edition : les Scripts _ error

Posted by: blacksender Feb 24 2009, 22:31

Bonjour à vous

J ai trouvé un petit script sur le forum pour que le scud lance son missile avec un déclencheur.
il marche trés bien en mission mais.

Chose bizzare quand je le mets sur la page outro defaite et lance une prévue il me donne un message d erreur.

`(_car |#|animationphase "StandFrame" ==1)`
Error animationphase: Type Booléen, Objet attendu


le script:

; Name scud unit : scud
; 1-After detection of blu, script wiil wait 3 seconds before starting de launch
~3
; 2- Check if scud is alive then start rising the missile + ramp

if (not alive Scud) Then {Exit}
[this] exec "\GIG_Scud\stand.sqs"
~25
; 3- Launch the missile

If (not alive Scud) Then {Exit}
[this] exec "\GIG_Scud\launch.sqs"
~60
; 4- Missile will fall and make the explosion. 10000 , 9800 are the coordinates of the impact point.Actually it is
; Paraiso Airport

[10000,9800] exec "\GIG_Scud\fall.sqs"
~2
[10000,9800] exec "\GIG_Scud\exp.sqs"
; END SCRIPT


merci de votre aide Blacksender.

Posted by: Rewan Feb 25 2009, 13:13

Déjà... ben c'est pas dans ton script qu'il y a une merde vu que la ligne posant problème ne s'y trouve pas...

Posted by: blacksender Feb 26 2009, 00:35

Bonjour avec ceci c' est mieux peut etre.


[this] exec "\GIG_Scud\stand.sqs":

_car = _this select 0

?(_car animationphase "StandMissile" == 1) : exit

~0.5

_car say "GIG_ScudStand"
_car animate ["StandMissile",1]
_car animate ["StandFrame",1]
@(_car animationphase "StandFrame" == 1)

~1.0

_car say "GIG_ScudStand"
_car animate ["StandFrame",0]
@(_car animationphase "StandFrame" == 0)

_car vehiclechat "Stand ready"

~2.0

?((_car animationphase "Trigger1") == 1) : _car vehiclechat "Launch preparation... all completed"

exit

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)