
Halocombatevolved
Joined: Nov 20, 2009
Son, I would've been your daddy, but, nevermind.
|
Posted: Sep 4, 2010 12:15 AM
Msg. 1 of 3
I made a script and it compiled successfully but the biped's won't do anything it says in the script in sapien. Does the script only work when you make your scenario into a .map file?
Here is script:
(script startup begin
(object_create b1)
(object_create b2)
(object_create b3)
(ai_attach b1 Covenant)
(ai_attach b2 Covenant)
(ai_attach b3 Covenant)
(ai_kill Covenant)
)
(script continuous banshee
(if
(and
(= (unit_get_health b1) 0) (= (unit_get_health b2) 0) (= (unit_get_health b3) 0)
)
(begin
(object_create_anew b1)
(object_create_anew b2)
(object_create_anew b3)
(ai_attach b1 Covenant) (ai_attach b2 Covenant) (ai_attach b3 Covenant) (unit_enter_vehicle b1 e1 "B-driver") (unit_enter_vehicle b2 e2 "B-driver") (unit_enter_vehicle b3 e3 "B-driver") )
)
)
Edit:
Is there a script so the player spawns in a banshee at the beginning of the level? Edited by Halocombatevolved on Sep 4, 2010 at 12:18 AM
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Sep 4, 2010 11:07 AM
Msg. 2 of 3
Replace "B-driver" with "". If they still won't enter, use vehicle_load_magic instead, and if they STILL won't enter, then they aren't able to comply for animation reasons or other reasons.
To load the player into a vehicle, refer to the player as (unit (list_get (players) 0))
|
|
|

Halocombatevolved
Joined: Nov 20, 2009
Son, I would've been your daddy, but, nevermind.
|
Posted: Sep 4, 2010 02:25 PM
Msg. 3 of 3
The ai can get in if I use commands in sapien but they just won't listen to the script.
EDIT: I fixed it! It would only work IN-GAME. Edited by Halocombatevolved on Sep 4, 2010 at 03:57 PM
|
|
|
| |
|
|
 |
|