regional effects.

Discuss stuff related to HaloCE (for modding, go to the HEK General forum).
Post Reply
ares-erus





Posts: 224
Joined: Mon Apr 28, 2008 8:51 am

regional effects.

Post by ares-erus »

Is there a way to make it so when a biped is shot in the eye it is blinded starts to fire randomly all over the place?
ImageImage
User avatar
Philly




Collaborator

Posts: 3607
Joined: Thu Oct 12, 2006 9:08 am

Post by Philly »

It might be dead by then.
ares-erus





Posts: 224
Joined: Mon Apr 28, 2008 8:51 am

Post by ares-erus »

Philly wrote:It might be dead by then.
Yeah, im looking to making a tank type biped where if you shoot the camera it becomes blind and shoots randomly.
ImageImage
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

I'm on my phone right now but I can write a script for you
ares-erus





Posts: 224
Joined: Mon Apr 28, 2008 8:51 am

Post by ares-erus »

Andrew_b wrote:I'm on my phone right now but I can write a script for you
Oh ok thanks.
If you could make it so when node "Eye" is hit the biped goes blind and fires randomly that would be great.
ImageImage
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

Well, this would be for everytime someone is killed.

Code: Select all

(script continuous blindness
 (sleep until (= (unit_get_health (unit (list_get (players) 1))) 0))
  (fade_out 0 0 0 15 )
  (sleep 33)
  (fade_in 0 0 0 15 )
)
That should work for player 1 only. I have this feeling that it will not sync online at all.
ares-erus





Posts: 224
Joined: Mon Apr 28, 2008 8:51 am

Post by ares-erus »

Andrew_b wrote:
That should work for player 1 only. I have this feeling that it will not sync online at all.
Wont be online, be AI fighting each other.
ImageImage
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

Code: Select all

(script continuous blindness
 (sleep until (= (unit_get_health (unit (list_get (players) 0))) 0))
  (fade_out 0 0 0 15 )
  (sleep 33)
  (fade_in 0 0 0 15 )
)
Ok then, Player 0 only. (Campaign)
Post Reply