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 »Script Trouble.. 1

Author Topic: Script Trouble.. 1 (3 messages, Page 1 of 1)
Moderators: Dennis

deadlyfighter1000
Joined: Jan 11, 2009

Constantly a threat.


Posted: Dec 5, 2010 02:12 PM    Msg. 1 of 3       
When I compile this script:

(script continuous ghosts1
(object_create g1)
(ai_place ghosts/g1)
(vehicle_load_magic g1 "" (ai_actors ghosts/g1))
(sleep_until (ai_living_count (ai_actors ghosts/g1) 0) 1) --line 5
(sleep 750)
)

It says error on line 5, it expected a ai but it returned an object list.. I know that it is an object list, but I want it to be an ai list. How can I fix it.


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Dec 5, 2010 11:23 PM    Msg. 2 of 3       
ai_actors renders the AI as an object list. Your correct command should be:

(sleep_until (= (ai_living_count [name of encounter]) 0) 15)

And I also forsee a problem in your vehicle_load_magic; your neglected to mention the seat label inside the Ghost. What it should be is:

(vehicle_load_magic g1 "G-driver" (ai_actors ghosts/g1))


deadlyfighter1000
Joined: Jan 11, 2009

Constantly a threat.


Posted: Dec 6, 2010 05:19 PM    Msg. 3 of 3       
Yup, thanks, I fixed it after awhile. Oh and using blank seat label usually works fine for me. Thanks for the help.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 12:14 AM 140 ms.
A Halo Maps Website