Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Unit SAY!  (Read 4904 times)

0 Members and 1 Guest are viewing this topic.

GingaWRATH

  • Guest
Unit SAY!
« on: 07 Jul 2005, 11:00:26 »
I am having problems making a Unit Scream.

My Idea is using Eventhandler killed or Hit run a script with _unit say "scream"

Ive got no error msgs and also No SCREAM!  :(

My event handler inside each units INIT field = this addeventhandler ["hit", {_this exec "aier\scream1.sqs"}]

My script =

_unit = _this select 0

_unit say "scream"

exit

Im so confused :(
« Last Edit: 07 Jul 2005, 11:03:29 by GingaWRATH »

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #1 on: 07 Jul 2005, 11:03:16 »
Just incase you was wondering I run my scripts for the scrams from another folder "aier". thats why the script is ran "aier\scream1.sqs"


Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Unit SAY!
« Reply #2 on: 07 Jul 2005, 11:23:06 »
Erm just wondering if you have defined the sound scream in your description.ext?
The Unsung Campaign Team Leader

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #3 on: 07 Jul 2005, 11:25:52 »
I think so.. :)
« Last Edit: 07 Jul 2005, 11:34:08 by GingaWRATH »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit SAY!
« Reply #4 on: 07 Jul 2005, 11:27:03 »
A dead unit cannot say anything, and you are only activating the say command when the unit is dead.

Could this be the problem?

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #5 on: 07 Jul 2005, 11:27:38 »
Well ive tryed Hit as my handle but still no response

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit SAY!
« Reply #6 on: 07 Jul 2005, 11:28:19 »
The hit may kill him.

Try playsound instead of say

The direction and volume of the sound will not be correct but it would at least rule out this as a problem
« Last Edit: 07 Jul 2005, 11:29:36 by THobson »

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #7 on: 07 Jul 2005, 11:29:29 »
Sry actually it could be the D.EXT ive just retryed with out and No error msg sry

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #8 on: 07 Jul 2005, 11:31:42 »
Maybe you can tell me whats wrong with it. I have 12 different screams named s1 -s12.  ( that might be a prob right there lol)

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Unit SAY!
« Reply #9 on: 07 Jul 2005, 11:34:31 »
Hmm just had a look at your description a bit different to any of mine. Are you having problems with any of your other sounds?
The Unsung Campaign Team Leader

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #10 on: 07 Jul 2005, 11:36:10 »
The Playsound worx but still no Say

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #11 on: 07 Jul 2005, 11:38:37 »
do u think i need a .lip file?

I doubt this but i use _unit say "eng1"-"42" all the time and these all have .lipfiles with them. (found in the Sound.pbo file)

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #12 on: 07 Jul 2005, 11:42:09 »
Ive shot the guy 1 time with the script set to _unit say "eng20" (for the gogogo sound)

and it repeates gogogo 1 time giving me 2 gogogos 1 after eachother hmm. But at leat this worx so im veryconfused as why s1 dont

GingaWRATH

  • Guest
Re:Unit SAY!
« Reply #13 on: 07 Jul 2005, 11:47:34 »
Im almost out of Ideas. I got some Kickass Screaming Here.. :(

Maybe I could try one of your D.ext just for my brains sake.
« Last Edit: 07 Jul 2005, 11:48:21 by GingaWRATH »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Unit SAY!
« Reply #14 on: 07 Jul 2005, 12:24:05 »
I thought you found the answer.  Playsound works - so you have no problem with the sound file or description.ext.

Say does not work with dead units and you want a dead unit to scream - it won't happen.

Try creating a Game Logic at the location of the unit at the point of death and get the game Logic to say the scream.
« Last Edit: 07 Jul 2005, 12:26:43 by THobson »