OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Specnaz on 19 Jan 2003, 15:09:25
-
what to write on WP field when AI reach it to activate radio Alpha?
-
:-\ I don't think you can activate the radio commands, so just make a normal trigger and change its condition line to
radiob
and then in the waypoints activation line put
radiob = true
-
Soz, but I gota Q.
I was playin a mission once apon a time, and the radio came on and said somethings, I swear it sounded like a radio speech in the campaign.
I might be :joystick: or it might not be true, but is there any way to use already recoreded voices ?
O Neil
PS: If that makes sense
-
As usually in radio-call triggers the condition: this
is used, which tells the trigger to be activated by THIS
and THIS = what you predefined above (e.g: radio-alpha),
you just need to enhance the condition field with one more
condition: this AND whatever_you_want_here
For example: AI's waypoint's onActivation field: gogo = true
radio call trigger's condition: field: this AND gogo
Now the radio call can be triggered manually by you, or by
the AI unit reaching the waypoint.
~S~ CD
-
I'm sorry if I misunderstood you Chris Death but actually if you put
this and gogo
into a radio trigger it will be activaded only when the condition gogo is true AND you make the radio call (0-0-whaever).
To activate the radio trigger by AI or you making the call you put
this OR gogo
+ if you would like to use this and gogo then you would also want to hide the radio call option untill gogo is true. Why? Because if gogo is not true then the player can pust his 0-0-1 a hundred times thinking 'why the heck can't I make the call. it's visible in my radio list but it just won't do anything'.
I don't have the command reference on this cpu but I recall hiding a radio trigger calls for
a) naming the trigger
b) using command triggername setradiomessage 0
preferably in init.sqs and when stating the gogo to true
also setting triggername setradiomessage 1
(the command might also be setradiomsg or something like that)
:-*
O'Neil I don't know about your question.. maybe if you depbo some or the BIS missions or campaings you will find their recordings if that's what you ment.
If you want to use your own recordings that surely is possible by recording it and then converting the wav to ogg and setting a class for it in the descrition.ext
-
oops - off course you're right Artak :-[
OR is the correct one to create a 2 case condition.
These mistakes happen, if you're already thinking about
summit else than you're talking actually ;D
~S~ CD
-
OKOKOKOK; I think I'm little lost here, ok in misson i made tne next thing, make radio Alpha on which when activated group of SpecNaz get into Mi-18 and go to another island and eject there. On this island is one Russian soldier which need to call radioAlpha to this action happen. so i want to make him move little around and than etc. after 5 minutes (in one waypoint) put "i ask you what" to activate radio Alpha? thx
-
okokokok since your dealing with strigtly AI here you don't need the trigger to be a Radio trigger.
If you for some reason want it to be a radio trigger then put in that wp's on activation field you mentioned
NAZgogo=true
then add to the radio trigger's condition field this line
this OR NAZgogo
btw you might want to get some great tutorials from the Editors Depot. Some of them can explain these things to you even better than I can ;)
click here to get your hands on those tuts
http://www.ofpec.com/editors/browse.php?browsewhat=0&category=0_1