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 »Scripting Question

Author Topic: Scripting Question (8 messages, Page 1 of 1)
Moderators: Dennis

deadlyfighter1000
Joined: Jan 11, 2009

Constantly a threat.


Posted: Apr 9, 2010 05:12 PM    Msg. 1 of 8       
(script startup teleport
(sleep_until (= (volume_test_objects teleport1 (players)) 1) 0)
(object_teleport (player) teleportto)
)

When I try to compile it says that player isnt a proper object name, but even when I try player0 it still doesnt work.


Co1t3r
Joined: Dec 13, 2008


Posted: Apr 9, 2010 05:25 PM    Msg. 2 of 8       

(script static "unit" player0
(unit (list_get (players )0 )))

Add that to the top of your script.


deadlyfighter1000
Joined: Jan 11, 2009

Constantly a threat.


Posted: Apr 9, 2010 05:34 PM    Msg. 3 of 8       
Okay, I added that to my script so it looks like this:

(script static "unit" player0
(unit (list_get (players )0 )))
(script startup teleport
(sleep_until (= (volume_test_objects teleport1 (players)) 1) 0)
(object_teleport player teleportto)
)

But it still says that player isn't a valid object name. Same with player0.


Co1t3r
Joined: Dec 13, 2008


Posted: Apr 9, 2010 05:36 PM    Msg. 4 of 8       
Quote: --- Original message by: deadlyfighter1000
(script static "unit" player0
(unit (list_get (players )0 )))
(script startup teleport
(sleep_until (= (volume_test_objects teleport1 (player0)) 1) 0)
(object_teleport (player0) teleportto)
)



deadlyfighter1000
Joined: Jan 11, 2009

Constantly a threat.


Posted: Apr 9, 2010 05:38 PM    Msg. 5 of 8       
Thanks for the help, I have another problem:

When I try to make a nav_point flag, it asks for the navpoint. How do I know what it is?
Edited by deadlyfighter1000 on Apr 9, 2010 at 08:09 PM


Noobyourmom
Joined: Mar 23, 2010


Posted: Apr 10, 2010 02:13 AM    Msg. 6 of 8       
You make a cutscene flag in sapien, place it where you want the nav point, and in your script you'll call it by the name you give it in sapien.


deadlyfighter1000
Joined: Jan 11, 2009

Constantly a threat.


Posted: Apr 10, 2010 11:06 AM    Msg. 7 of 8       
Thanks for the help, but lol I already figured it out. The problem was this:

(activate_nav_point_flag "" (player0) navpoint1 0)

I didn't know what to put in between the "".

But I looked at the a10 script and found out I just needed to put in default_red like so:

(activate_nav_point_flag default_red (player0) navpoint1 0)


shadowce9
Joined: Mar 13, 2010

Learning Halo CE Scripting.


Posted: Apr 10, 2010 11:18 AM    Msg. 8 of 8       
Default_red is just a red nav point like for a warning or when you gotta escape somewhere (like d40). You can also try:

"default", "default_red", "flag_blue", "flag_red", "target_blue", "target_red", "skull_blue", "skull_red", "crown_blue", and "crown_red".

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 3:23 AM 172 ms.
A Halo Maps Website