
KouRyuu
Joined: Jul 9, 2009
U.S. Marines. 'nuff said.
|
Posted: Jul 21, 2010 11:37 AM
Msg. 1 of 2
i'm trying to use this script:
(script continuous set_marines_Pelican_ZONE (begin (if (and (= (volume_test_object ZONE Pelican) true) (= (unit_get_current_flashlight_state Pelican) true) ) (begin (begin (if (and (= (volume_test_object ZONE (ai_actors marines)) true) (= Pelican_has_hog_number -1) ) (begin (unit_set_desired_flashlight_state Pelican false) (set Pelican_has_hog_number 1) ) ) ) ) ) ) )
which is supposed to test to see if there is a pelican in the trigger volume 'zone' and the ai encounter 'marines' in the 'zone'. for some reason, (probably i'm using it wrong) it gives me this response when compiling:
i expected a object, but this function returns a object_list.: (ai_actors marines)) true)
could any scripting incarnate help? any help is much appreciated!
|