Search the Community
Showing results for tags 'interact'.
Found 3 results
Wilson543210 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTINGHey everyone, I need help in a custom script I need to do. I need to make a self interact available to all players on a multiplayer server, where they can select from a pre-defined list of what headwear I can give them. So like, how would I go about this for ALL players? Do I need to add an "_action = ["blah","blah"] in every single player init? Or is there a way I could do an external sqf and use an execVM or #include? I had experience with vanilla coding but that was over 4 years ago in A2.
Script allow you to put weapons and ammunition on the interior objects, move these objects and stack them to build a compositions for various tasks. Compact, efficient in terms of performance, single file with about 100 lines. Technically, script does not need to run anything other than the original game. But to take full advantage of its capabilities you need to be able to climb on objects and free your hands from weapons. Any mod or script provides such abilities can be used. I use Enhanced Movement from Bad Benson. Version 2.1 New choosing the place algorithm for putting items. It allows to more precisely place objects, even in hard to reach places. The body direction determines items direction, while the camera direction relative to the body determines the location where items will be placed. Added optional marker indicating position and direction at which items will be put. Whiteboard in demo mission has an menu action to control, show marker or not. Version 2.0.Beta: Interaction logic changed to make usability more intuitive and clear. Appearance of command menu option is now guarantee that the corresponding action can be initiated without any additional conventions. Added ability to move simple objects like camping lanterns, whiteboards and different decorative objects. Added continuous control of carry process. Now at any moment player can elevate object by change stance or drop when got damage or ran out of stamina. Weight of held object affects stamina. Lightweight object can be held indefinitely long, while heavy object will exhaust you very quickly. Now player able to move objects with weapon in hands, but it also increases exhaustion speed of stamina. Added function to batch override mass of objects to predefined values. Now it is possible to specify height of the upper surface individually for each object class. This allows to correct positioning of items on a complex shape objects like chairs or benches. Support of multi-surface objects like shelves and racks. Known issues (not caused by script, but influencing it): Some of objects have unrealistic default weight. For example plastic table weighs 99 kg, camp lantern - 10 kg, small plastic ammo crate - 500 kg, and so on. This should be remedied by the mission designer. Fortunately we have the setMass command. Also script contains special function to fix it in batch manner. Sometimes player stuck in weapon holstering animation when puts weapon to the ground from a kneeling position. Take weapon back solves the problem. Sometimes, due to properties of game physics, military crates attached to the player, can throw him up. Script, usage sample and demo mission with detailed tutorial here. Have fun!