Page 1 of 1

regional effects.

Posted: Tue Jun 17, 2008 6:41 am
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?

Posted: Tue Jun 17, 2008 8:48 am
by Philly
It might be dead by then.

Posted: Tue Jun 17, 2008 3:16 pm
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.

Posted: Tue Jun 17, 2008 3:21 pm
by Andrew_b
I'm on my phone right now but I can write a script for you

Posted: Tue Jun 17, 2008 3:25 pm
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.

Posted: Tue Jun 17, 2008 4:46 pm
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.

Posted: Wed Jun 18, 2008 10:56 am
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.

Posted: Wed Jun 18, 2008 1:19 pm
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)