Search the Community
Showing results for tags 'amature'.
Found 1 result
Evening people So I'm currently in the process of making a missions which is coming along rather well but I've now ran into a problem (which I was aware would happen), and I'm unsure how to go about it. Context: Upon spawning there two sides "west" & "civilian" When the CivPop players spawn I wish for one of them at random to be selected to have a certain option and also be hinted they are the chosen player. The option I wish for them to have is an "AddAction" which when activated will execute a script.In that script I wish for it to force that unit to switch Side to "east", change their loadout, play a sound file, hint to "west", and then remove action. Currently I have a onPlayerRespawn.sqf file with the following (Var shooter is currently on "east" side) sleep 5; shooteraction = shooter addAction [ "<t color='#C00000'>BEGIN CARNAGE</t>", "shooter.sqf" ]; Within the shooter.sqf is the following shooter say3d ["pumped", 25, 1]; shooter removeAction shooteraction; All of the above code works fine, it's quite simple, I've got the sound file to play fine and the action to be removed; but now how would I go about the rest. Upon spawning: Choosing random CivPop player to have said option and hint informing them upon spawning When activated: Forcing chosen player to side "east" Forcing chosen player to change loadout to what I list To play the above sound file and finally remove action Any help would be great. I'm still quite Amature to development for Arma but I have a passion to learn. Sadly I'm stumped .