Search the Community
Showing results for tags 'method'.
Found 3 results
-
[Code Snippet] create method library - CreateVehicle, DeleteVehicle (Arma 3 similar)
sarogahtyp posted a topic in Arma Reforger - Configs & Scripting
What I began on my current AR project is to create a tool class with methods that make me some things easier. In this case I show how to create an easy to use CreateVehicle and a DeleteVehicle method with overloaded argument lists. Which just means that you can have different parameter syntaxes as known from various Arma 3 commands. I created a new script file in the newly created folder MyProject/scripts/GameCode/Tools according to the AR directory structure as I understand it^^. I named the file SaRo_Tools.c - this file will contain the class with my tools methods. What do I have to do when spawning a vehicle without that tools class? Something like this: Now instead of doing this we create our tools class which does most of this automatically: Now you have 2 easy methods to spawn a vehicle: IEntity vehicle1, vehicle2; //1st method using resource name and spawn position vehicle1 = SaRo_Tools.CreateVehicle("{DD774A8FD0989A78}Prefabs/Vehicles/Wheeled/M998/M1025_armed_M2HB_MERDC.et", Vector(1288.93, 0, 766.7)); //2nd method using resource name, an existing entity and a position vector relative to that entity vehicle2 = SaRo_Tools.CreateVehicle("{DD774A8FD0989A78}Prefabs/Vehicles/Wheeled/M998/M1025_armed_M2HB_MERDC.et", someEntity, Vector (0, 0, -15)); //spawns 15m behind someEntity Maybe I did some mistakes in this post because I did write it out of my mind partially. But I ll validate, expand and edit it if Im at home... Deletion methods will be done then as well EDIT: to get this done, I also added 2 entity deletion methods to the tools class. I just post those 2 methods and not the CreateVehicle methods from above again although they are in that class: Now you have 2 easy methods to delete an entity: //1st method delete using the entity ID SaRo_Tools.DeleteVehicle ( SaRo_BMHQ01MenuBaseClass.camoNetID ); //2nd method delete using the entity itself SaRo_Tools.DeleteVehicle ( someEntity ); Now YOU know how to build an own tools library class and you also know how to overload class methods. Its your turn to create more methods that way to get things a bit easier for you... -
The final suomi challenge is stupid difficult. That gun is the biggest steaming pile of cheeks I've ever seen and 10 seconds is crazy. I've gotten 10.77 but can't get lower. RIP
-
Make Arma Not War - Alternative Submission Method
Korneel posted a topic in Arma 3 - MAKE ARMA NOT WAR CONTEST - NEWS
Hi everyone, We would like to let you know that certain entries in the Multiplayer and Addon categories may now also be submitted to the Make Arma Not War Dropbox. What’s changed? Over the past few weeks, we received several e-mails from contestants in the Multiplayer and Addon categories who - for technical reasons - were not able to submit their work to the Arma 3 Steam Workshop. As a result, we've decided to allow for certain exceptions in the Multiplayer and Addon categories. If contestants are not able to submit their work to the Steam Workshop (whether it's because of file size, complications with servers, or otherwise), they will now have the possibility to submit their work to the Make Arma Not War Dropbox. How does it work? If you are competing in the Multiplayer or Addon category, and cannot submit your work the Arma 3 Steam Workshop, please send an e-mail to support@makearmanotwar.com. In the e-mail, you should clearly state why you’re not able to submit your work to the Arma 3 Steam Workshop. Make sure to also include the link to your entry on the Make Arma Not War website (if you have it), so we know which entry is yours. If your request is accepted, we will set you up with a shared drive on our Make Arma Not War Dropbox. You can then use this to share your files with us, and a Steam Workshop submission will no longer be required for your entry. I still have questions. As always, if you have any further questions, please do not hesitate to contact us via support@makearmanotwar.com. Good luck in the contest! Note The Singleplayer category will still need to be submitted to the Steam Workshop. This is because, in this category, public voting will select the finalists - and we want to keep it as easy for people to install, play, and vote for these entries. (Existing contestants in the Multiplayer and Addon categories will also be contacted via e-mail. The application process on www.makearmanotwar.com has been updated to inform new contestants about this alternative possibility.)- 18 replies
-
- alternative
- arma
-
(and 4 more)
Tagged with: