ArmA SDK v0.2.1 Downloads › Sourcecode Kategorie: Sourcecode Entwickler: 64com Hochgeladen von: System Hinzugefügt am: Mo 27. Apr 2015, 16:12 System: Windows Download (24.09 KB) VirusTotal Ergebnis: 0/57 Download (24.09 KB) Beschreibung Bei Problemen mit einem Hack hilftein Blick in die FAQ! This package contains the "ArmA Software Development Kit", a small collection of helper classes for writing C++ code for PC game "ArmA 3". You can use it to explore the game engine, for creating additional admin-tools or for fun. Please, don't use it for hacking or cheating! I think that it is not necessary to describe in detail how to use it – just look at the source code and all will become clear. I just give a simple example.First, you need to initialize "main interfaces" (GWorld, GEngine, GNetworkManager, etc):CPP Code: // Somewhere inside your "main()" function InitIterfaces(); After this you get "control" over engine. As an example we obtain the coordinates of objects in 3D space, and convert them to the "real 2D" screen space:CPP Code: // ===============================================// Somewhere inside your "DrawObjects()" function// =============================================== // local playerObject* obj = (Object*)(cameraOn.GetObject()); // this SDK don't containt object-iterating method (below is just an example)for(int i = 0; i < static_cast<int>(entities.size()); i++){ if(entities[i].GetObject() != NULL && entities[i].GetObject() != cameraOn.GetObject()) { // real player, AI, object, etc Object* target = (Object*)(entities[i].GetObject()); Vector3 worldPos = target->RenderVisualState().Position(); Point2DFloat screenPos; bool behindCam = GAbstractUI->WorldToScreen(worldPos, screenPos); if(!behindCam) GRender.DrawText("TEXT", screenPos.x, screenPos.y, ...); // your "Text render" function }} Download ArmA SDK v0.2.1