A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »how can i turn an ai_actor into an object list?

Author Topic: how can i turn an ai_actor into an object list? (2 messages, Page 1 of 1)
Moderators: Dennis

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!


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Jul 21, 2010 01:24 PM    Msg. 2 of 2       
Use (volume_test_objects) instead.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 7:41 PM 141 ms.
A Halo Maps Website