
hoboscience
Joined: Apr 22, 2011
|
Posted: Dec 30, 2011 02:19 PM
Msg. 1 of 4
I am very interested in creating voice commands that can be selected dependent on what weapon your holding. This can be triggered by the flashlight or any other worthless command people don't take advantage of in multiplayer. From what I have been told, this can be accomplished using scripts. I am overwhelmed with a huge map project and would prefer to seek outside help with scripting rather than diving deep in into the abyss of script creation. So can anyone tell me the script I would need to achieve this? Thanks
While I'm asking about scripting I created this script using Easy Halo Scripter V2, the problem is I can't seem to get any of the scripts generated to work. One example here that I would really like to see work is a vehicle animation triggered by a trigger volume. The script generated is
(script continuous start_animsound (if(= (volume_test_object trig1 milf1) true) (sv_say "milfroundabout") (scenery_animation_start doors "vehicles\milf\milf" "milfroundabout") (sound_impulse_start sound\dialog\chief\deathviolent none 1) )
MY DEBUG ERROR
12.30.11 23:28:02 [milfroundbout line 2] i expected (if <condition> <then> [<else>]).: (if (= (volume_test_object trig1 milf1) true)
12.30.11 23:28:06 recompiling scripts after scenarios were merged. 12.30.11 23:28:07 [introtext line 2] this left parenthesis is unmatched.: (begin
12.30.11 23:28:07 this left parenthesis is unmatched.: (if (= (volume_test_object trig1 milf1) true)
Edited by hoboscience on Dec 30, 2011 at 11:40 PM
|
|
|

game user10
Joined: Dec 9, 2011
Who is the Overseer?
|
Posted: Dec 31, 2011 02:01 AM
Msg. 2 of 4
I only know how to play a sound when you turn on the flashlight, but not with a specific weapon. (script continuous <scriptname> (sleep_until (= (unit_get_current_flashlight_state (player0)) true)) (sound_impulse_start <.sound tag> none 1.00) (unit_set_desired_flashlight_state (player0) false) )
This will play the sound every time you turn on the flashlight, and then turn it back off so it won't loop. Edited by game user10 on Dec 31, 2011 at 02:02 AM
|
|
|

TauSigmaNova
Joined: Jan 31, 2011
If love is blind, I guess I'll buy myself a cane
|
Posted: Dec 31, 2011 11:15 AM
Msg. 3 of 4
Quote: --- Original message by: hoboscience milf1 Edited by hoboscience on Dec 30, 2011 at 11:40 PM I lold.
|
|
|

hoboscience
Joined: Apr 22, 2011
|
Posted: Dec 31, 2011 02:49 PM
Msg. 4 of 4
haha yeah... MillenniumFalcon1
|
|
|