OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Joiner on 24 Nov 2008, 12:49:05
-
Hi everyone! I'm creating an MP mission in which BluFor will have to destroy several empty Hammers. However, there is a problem - those guys who will eliminate them will get -3 points per each destroyed hammer. Could anyone tell me how I can make those Hammers "enemy" ones so that the players get positive score points for the destroyed Hammers? Thanks in advance!
-
Welcome to OFPEC :good:
Have a look at the addRating (http://www.ofpec.com/COMREF/#11) command in the COMREF.
-
Thenks :)
I have added negative rating to those vehicles, but they do not become "enemy" ones: the player gets -3 upon destroying one of them. If I add rating to the player who destroyed it, it does not affect the score displayed in the Score Table - it is still negative.
Sorry if I ask stupid questions, I'm new to editing in Arma.
-
Might want to check addScore (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=a#12) then ;)
-
OK, thanks. And how is it possible to determine the player who hit the vehicle so that I can add score to him? (When playing with rating I used only one bot.)
-
With the 'killed' eventhandler (http://www.ofpec.com/ed_depot/index.php?action=details&id=39&game=OFP). Assuming eventhandlers work in MP, not too sure on that one.
-
Thanks a lot! Will see whether it works.
-
I forgot to say:
Sorry if I ask stupid questions, I'm new to editing in Arma.
There are no 'stupid' questions: everyone begins somewhere. We're here to help editors of all levels of expertise.
-
what if you had a group of opfor start in vehicle and have them get out.... see if the Side switches for the HUMMER then.
-
Good idea, thanks! Will try it.
Quote: "There are no 'stupid' questions"
Thanks : )
...
Placing enemy units in the vehicles helped, thanks a lot! Though, I came across another problem... I use an MP mission templete to create my mission. It includes a briefing template and everything that is required for an MP mission. Everything works fine, except for one thing: If a client connects during the game, he doesn't see the briefing, the game starts right after the mission is loaded. Is the clients and the server start simultaneously, the clients see the briefing. What can be wrong? I haven't found a discussion of a similar problem on this forum, and this seems to the last bug in my mission. Please help.
-
What your referring to is JIP "Join in progress" of the game, and if i recall that is the way its supposed to work if you JIP. The briefing isn't shown to new clients joining. The user can just hit m and get still get the briefing.
-
Ah, I see, thanks!