prototype1479 63 Posted April 2, 2017 Can you make Addaction command go public with publicVariable when its local? (I don't have a server to test this) For example: Action1 = Player Addaction ["Destroy","Destroy.sqs"] publicVariable "Action1" Share this post Link to post Share on other sites
zulu1 145 Posted April 2, 2017 Hey one of many names :) PublicVariable does not make a variable public, but transmits a variable to all clients connected. This is used most often with completed objectives and mission ends. Variables like this are True or False. Example: Make OBJ1Done false in Init.sqs OBJ1Done=false Then in trigger for OBJ1 being complete put in trigger init line: OBJ1Done=True; publicVariable "OBJ1Done" This sets the OBJ1Done variable to true and sends the publicVariable to all clients. Now if you want some action to take place when OBJ1Done is true you would put that (OBJ1Done) in the condition line of a trigger or a waypoint. I hope this makes sense. BTW the use of "Player" in MP can be problematic as each player is Player in their machines. 1 Share this post Link to post Share on other sites
prototype1479 63 Posted April 3, 2017 So it won't make Addactions public when it becomes private in some situations? Anyways you still here to help me man thanks! Oh and yeah I do use _p = _this select 1 (on AddAction's) and _p = _this select 0 (On others. Depends on command/script) because I trust them more than "player" command but that was just an example. Share this post Link to post Share on other sites
zulu1 145 Posted April 3, 2017 I don't know what it is you're to do with this so I can't really give any advise. There is an old thread n PV's mainly for scripts in CTI missions it looks like. You can take a look here:https://forums.bistudio.com/forums/topic/31961-public-variable/ 1 Share this post Link to post Share on other sites
prototype1479 63 Posted April 5, 2017 zulu1 = best player? Thanks :D Share this post Link to post Share on other sites
zulu1 145 Posted April 6, 2017 19 hours ago, prototype1479 said: zulu1 = best player? Thanks :D Not really, two players who can rack up an insane amount of kills: poweruser [vs] exec (aka Nevada Smith) 1 Share this post Link to post Share on other sites
prototype1479 63 Posted April 6, 2017 #reconfirm ? poweruser == op : fight1 = true ? nevada_smith == op : fight2 = true #1v1 ? Fight1 == false : goto "reconfirm" ? Fight2 == false : goto "reconfirm" poweruser setPos [(getPos WarStadium select 0)+0, (getPos WarStadium select 1)+2, (getPos WarStadium select 2)+0] Nevada_smith setPos [(getPos WarStadium select 0)+0, (getPos WarStadium select 1)-2, (getPos WarStadium select 2)+0] exit Let the battle begin :D Share this post Link to post Share on other sites