In this thread by Geosword, Demonized responded with this
But I don't really get it, and have a different, though simular task I wan't to be done. Mine is much simpler, what is going to happen is that by my radio command (as the mission maker and "master"), an AI is going to give a speech, then a captive is going to be shot. The script works in singleplayer. In MP, the only difference is that the AI doesn't give the speech, the target is executed though.
The trigger I use for this is as follows:
With the preset condition "Radio Alpha".Code:if (isServer) then { null = [man1, lead] execVM "speech.sqf"; };
The script itself looks like this:
How do I get him to talk, so that those who are close to him hear what he says?Code:_man1 = _this select 0; _lead = _this select 1; _man1 say ["pang",5]; sleep 49; _lead setcaptive false;
If it's needed, this is the description.ext:
As you probably can tell, I am quite new to scripting and mission making, so it takes a bit of time. But nontheless, I would be very grateful if you could help me with this.Code:class CfgSounds { // List of sounds (.ogg files without the .ogg extension) sounds[] = {pang,}; t1o_mcc_teleport_on_start = false; // Definition for each sound class pang { name = "pang"; // Name for mission editor sound[] = {"\sound\pang.ogg", 1, 1.0}; titles[] = {}; }; respawn = "BASE"; respawndelay = 4; disabledAI = 1; };
What my comfusion with demonized response is, is that I don't understand whether or not it is possible to do without the MP framework, and wether or not I actually do need to use a Module, and even where to put the code he provided. I don't get it.
HOME 
Reply With Quote