The Loot Posted July 23, 2014 Report Share Posted July 23, 2014 Is this possible? To simplify things, I was thinking of hiding certain commands, ones that are targeted and don't need the icon to be pressed to be activated. Some examples would be Arrest, DriveAwayPerson, Pickup, EnterCar, EnterHouse, Cool, Extinguish, and so forth. I assume there's a parameter that will hide the command, but I wonder if that will effect the actual use of it. Quote Link to comment Share on other sites More sharing options...
Hoppah Posted August 17, 2014 Report Share Posted August 17, 2014 Maybe, try changing GroupID of each script to 21. Example: old: SetGroupID(CGROUP_ARREST);New SetGroupID(21); Quote Link to comment Share on other sites More sharing options...
The Loot Posted August 18, 2014 Author Report Share Posted August 18, 2014 Thanks, I'll give that a try. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted August 18, 2014 Report Share Posted August 18, 2014 If I may ask Hoppah, what does the GroupID do? I've also seen DummyGroups with a number behind them, but I haven't been able to figure out what they do Quote Link to comment Share on other sites More sharing options...
Hoppah Posted August 23, 2014 Report Share Posted August 23, 2014 It does what it says it does, it groups certain commands. Depending on the conditions of each script, the game will show one or another in the command bar. Because those scripts are grouped, it will never show both scripts in the commandbar simultanously. In case all scripts in a certain group return true or false for its group visibility conditions, the game will pick the script that is set as GroupLeader I think. For example the LightOn and LightOff scripts.They're both grouped 'CGROUP_LIGHT'. The game will show LightOn in the commandbar if condition 'v.IsLightOn' returns false. And it will show LightOff if the same condition returns true. There's similar groups fer commands like draw/holster gun, lift/drop object, attach/detach fire hose and they all have specific conditions for group visibility. For custom scripts you can use numbers (instead CGROUP blahblah) to group scripts. 21 is usually used for hidden scripts such as dummyscripts which are used to assign certain flags/conditions/traits (whatever) to an object. For example, the siren script, when a siren is activated the game assigns 'DummyHasSiren' to the object. In this case, that's useful because its basically the only way for other scripts to check if the object has enabled its sirens. In theory you can use such a number to hide any script from the commandbar. However, Im not sure if the 'target by mouse click' functionality remains active. Quote Link to comment Share on other sites More sharing options...
timmiej93 Posted August 23, 2014 Report Share Posted August 23, 2014 Thanks for explaining, this definitely clarifies it! Quote Link to comment Share on other sites More sharing options...
The Loot Posted November 8, 2014 Author Report Share Posted November 8, 2014 Just an update: tried setting the GroupID to 21, but hiding the commands stops them from being able to be used. I'll just have to be smarter with command assignments. Quote Link to comment Share on other sites More sharing options...