
heempy
Joined: Apr 13, 2011
|
Posted: Jul 17, 2011 12:27 PM
Msg. 1 of 8
Sapien told me the left parenthesis of "(if (= (unit_get_health check_vehicle) 0.0)" is unmatched I don't know how to script very well so... some one fix this? (global boolean is_server false) (script startup vehicle (begin (if (= (unit_get_health check_vehicle) 0.0) (begin (set is_server true) (object_destroy check_vehicle) (object_create ban1) (object_create ban2) (object_create ban3) (object_create ban4) (object_create hawk1) (object_create hawk2) (object_create hawk3) (object_create hawk4) ) ) ) ) (script continuous respawn (begin (if (= is_server true) (begin (if (= (volume_test_object vehiclespawn ban1) true) (begin (object_teleport ban1 ban1) (object_set_facing ban1 ban1) ) ) (if (= (volume_test_object vehiclespawn ban2) true) (begin (object_teleport ban2 ban2) (object_set_facing ban2 ban2) ) ) (if (= (volume_test_object vehiclespawn ban3) true) (begin (object_teleport ban3 ban3) (object_set_facing ban3 ban3) ) ) (if (= (volume_test_object vehiclespawn ban4) true) (begin (object_teleport ban4 ban4) (object_set_facing ban4 ban4) ) ) (if (= (volume_test_object vehiclespawn hawk1) true) (begin (object_teleport hawk1 hawk1) (object_set_facing hawk1 hawk1) ) ) (if (= (volume_test_object vehiclespawn hawk2) true) (begin (object_teleport hawk2 hawk2) (object_set_facing hawk2 hawk2) ) ) (if (= (volume_test_object vehiclespawn hawk3) true) (begin (object_teleport hawk3 hawk3) (object_set_facing hawk3 hawk3) ) ) (if (= (volume_test_object vehiclespawn hawk4) true) (begin (object_teleport hawk4 hawk4) (object_set_facing hawk4 hawk4) ) ) ) ) ) ) )
sorry if I bother you
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jul 17, 2011 12:37 PM
Msg. 2 of 8
It would give you some other error, because that section does have matched parenthesis. There should be some error about not being able to find an object, etc (if it cannot find the object, it stops reading the script right there, hence the script is then unmatched because it didnt read any further)
|
|
|

Spiral
Joined: Apr 3, 2011
I hope i'm out of the way
|
Posted: Jul 17, 2011 12:44 PM
Msg. 3 of 8
ignore the vehicle thing so? heempy is this it? Edited by spiral on Jul 17, 2011 at 12:45 PM
|
|
|

heempy
Joined: Apr 13, 2011
|
Posted: Jul 17, 2011 12:46 PM
Msg. 4 of 8
yes, just like that.
so, help? Edited by heempy on Jul 17, 2011 at 01:08 PM
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Jul 17, 2011 01:25 PM
Msg. 5 of 8
Name the vehicle check_vehicle.
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jul 17, 2011 01:35 PM
Msg. 6 of 8
sapien told you exactly what was wrong.. it told you it couldn't find that object. That objects name says its a vehicle.. If you can't understand when sapien tells you in clear english, what makes you think it will be any different when we tell you it in clear english?..
|
|
|

DAS_G_Lion
Joined: Dec 30, 2010
Wanted. Somebody to go back in time with me.
|
Posted: Jul 17, 2011 09:47 PM
Msg. 7 of 8
Quote: --- Original message by: kirby_422 sapien told you exactly what was wrong.. it told you it couldn't find that object. That objects name says its a vehicle.. If you can't understand when sapien tells you in clear english, what makes you think it will be any different when we tell you it in clear english?.. The formatting of Sapiens debug messages can be confusing to newer individuals. But if he is experienced then your right there is no excuse lol.
|
|
|

cyboryxmen
Joined: Nov 7, 2010
--CG artist-- New mission. Refuse this Mission!
|
Posted: Jul 18, 2011 05:59 AM
Msg. 8 of 8
Quote: (unit <object>) converts an object to a unit. Hope this helps. -Zekilk Edited by cyboryxmen on Jul 18, 2011 at 06:00 AM
|
|
|