OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kymandro on 06 Feb 2005, 17:41:49

Title: Raido (0-0-1) (0-0-2) (0-0-3) + scripts
Post by: kymandro on 06 Feb 2005, 17:41:49
Hey i downloaded some cool scripts from the editors dipot and i have more than one in the same map. you know when you click "M" and the map comes up and then you can go to that radio thing a click things on the radio. well one of the scrips has space 0-0-1 and the other scrips uses 0-0-1 and 0-0-2 so scrip2's 0-0-1 space is ignored. the question is what piece of the script tells what slot it goes in on the radio like what should it say. i cant seem to find it. i just want to move scrip2 into 0-0-2 and 0-0-3

Danke :D
Title: Re:Raido (0-0-1) (0-0-2) (0-0-3) + scripts
Post by: macguba on 06 Feb 2005, 17:52:02
The command you are looking for is setRadioMsg.
Title: Re:Raido (0-0-1) (0-0-2) (0-0-3) + scripts
Post by: kymandro on 06 Feb 2005, 18:26:41
I found where it says that

onMapSingleClick {}
1 setRadioMsg "Null"
2 setRadioMsg "Null"

I changed it to

onMapSingleClick {}
2 setRadioMsg "Null"
3 setRadioMsg "Null"

And it didnt work, was i supposed to do that?
Title: Re:Raido (0-0-1) (0-0-2) (0-0-3) + scripts
Post by: Fragorl on 06 Feb 2005, 22:34:54
If i understand you correctly, you'll need to find the appropriate triggers in whatever map you're attempting to use the scriipts in.

There should be two triggers which are both set to 'Activated by: "Alpha" ' You'll  need to change one of them to something else.

SetRadiomsg will set the text that the radio shows for the appropriate trigger. So:
1 Setradiomsg "Hello" will set (the trigger with 'alpha' as its activation)'s message on the radio as 'hello', 2 setradiomsg "hi" sets Bravo trigger as 'hi' on the radion, and so on.

I'm not sure whether 1 setradiomsg "Null" will cause the radio to display no text, or the word 'null'.
1 setradiomsg "" will do this just as well i think.