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 »player flashlight gets replaced by camo script

Author Topic: player flashlight gets replaced by camo script (4 messages, Page 1 of 1)
Moderators: Dennis

sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Jan 20, 2009 01:12 AM    Msg. 1 of 4       
can someone tell me a script that would do this..im making a skull that when it gets picked up its replaces your flashlight with camouflage PLEASE TELL ME!?!?!?!?!

EDIT: like the skull in delta halo level on halo2
Edited by sierra117 on Jan 20, 2009 at 01:12 AM


Mythril
-
Screenshot Guru
-
Joined: Mar 29, 2008

Jeffrey Albert Waldo


Posted: Jan 20, 2009 02:53 AM    Msg. 2 of 4       
Quote: --- Original message by: Dark Ninja
I was messing around while making maps, and figured out how to create an Arbiter style cloak-kinda. Before I go into it, I did search, and I haven't seen any topics about this. This only works for singleplayer maps. You place a health pack, cloak, etc. and give it a name. Check "not placed automatically". Then you script.

(script startup Cloak
(begin
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) true))
(object_create cloak)
(objects_attach (unit (list_get (players) 0)) "" cloak "")
(objects_detach (unit (list_get (players) 0)) cloak)
(sleep 1650)
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) false))
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) true))
(object_create cloak)
(objects_attach (unit (list_get (players) 0)) "" cloak "")
(objects_detach (unit (list_get (players) 0)) cloak)
(sleep 1650)
)
)


With this you cloak, and then wait, I think 10 seconds before using it again. And it only works twice, to make it continuous, make it a script continuous. You can also use the flashlight thing for other purposes, like meleeing if you're a hunter, spawning AI for backup, telling AI to advance with their command list, etc.

Here's one for melee with a hunter

(script continuous Melee
(begin
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) true))
(magic_melee_attack)
(sleep_until (= (unit_get_current_flashlight_state (unit (list_get (players) 0))) false))
(magic_melee_attack)
)
)

I just wanted to share this with everyone.
Edited by Dark Ninja on Aug 20, 2008 at 10:09 AM


Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Jan 20, 2009 04:21 AM    Msg. 3 of 4       
Remember to change the powerup time to 10 secs, or your camo would last for 45 seconds.


sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Jan 20, 2009 04:33 AM    Msg. 4 of 4       
ya thanks polamee and mythril =) this really help alot thankyou so much!

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 4:32 AM 172 ms.
A Halo Maps Website