
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.
|