Currently there’s a Bug where instead of communicating returning true it returns false. It starts out as 0 and changes to false. You can check this by importing the code VC6TH and communicating hello
Ok but how do I distinguish between them, I wanted to fix an older workshop (mxcb3) by APM which relies on the communication wheel to tp back and I don’t know how to?
Is Communicating(Event Player, Acknowledge) == True;
The workshop editor I was using mentioned something about string concatenation but damn if I know how that works. This is the message:
The function Player.isCommunicating() currently returns ‘0’ and ‘false’ instead of false/true. It is possible to distinguish the values through string concatenation.
Is Communicating(…) == Custom String("{0}", False)
That sounds like it could work but for some reason or another it’s not working.
Could you send a workshop code with it working because maybe I messed up something? for example leaving {1} and {2} as null or something.
I created this simple workshop code that resets your cooldowns either by pressing q or saying thanks. The first one works but the other method doesn’t
Here’s the workshop code N3G0Y
And here’s the code snippet
settings
{
lobby
{
Max Team 1 Players: 6
Max Team 2 Players: 6
}
modes
{
Assault
{
disabled maps
{
Temple of Anubis 0
}
}
Control
{
disabled maps
{
Antarctic Peninsula 0
}
}
Escort
{
disabled maps
{
Shambali Monastery 0
}
}
Hybrid
{
disabled maps
{
}
}
General
{
Game Mode Start: Manual
}
}
}
rule ("Reset Cooldowns (thanks)") {
event {
Ongoing - Each Player;
Team 1;
All;
}
conditions {
Is Communicating(Event Player, Thanks) == Custom String("{0}", False, Null, Null);
}
actions {
Set Ultimate Charge(Event Player, 100);
Set Ability Cooldown(Event Player, Button(Primary Fire), 0);
Set Ability Cooldown(Event Player, Button(Secondary Fire), 0);
Set Ability Cooldown(Event Player, Button(Ability 1), 0);
Set Ability Cooldown(Event Player, Button(Ability 2), 0);
Set Ammo(Event Player, 0, Max Ammo(Event Player, 0));
}
}
rule ("Reset Cooldowns (Hold q)") {
event {
Ongoing - Each Player;
Team 1;
All;
}
conditions {
Is Button Held(Event Player, Button(Ultimate)) == True;
}
actions {
Set Ultimate Charge(Event Player, 100);
Set Ability Cooldown(Event Player, Button(Primary Fire), 0);
Set Ability Cooldown(Event Player, Button(Secondary Fire), 0);
Set Ability Cooldown(Event Player, Button(Ability 1), 0);
Set Ability Cooldown(Event Player, Button(Ability 2), 0);
Set Ammo(Event Player, 0, Max Ammo(Event Player, 0));
}
}