![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Kodiak may I ask please?
Quote:
This statement in the function/method- can you explain please how it works? I can see that after this procedure I know if I am in enemy or friendly territory, this is very valuable for all of us, so I must ask you for the clues- thanks Ming |
|
#2
|
|||
|
|||
|
no its not a maddox variable, i declare
bool OverEnemyTeritory = false; at the beginning of the script. with public override void OnTickGame() { //Point3d P = PlayerPlane.Pos(); if (!OverEnemyTeritory && GamePlay.gpFrontDistance(1, PlayerPlane.Pos().x, PlayerPlane.Pos().y) <= 0) { GamePlay.gpHUDLogCenter("Sie befinden sich nun über Feindgebiet!"); OverEnemyTeritory = true; } else { OverEnemyTeritory = false; } } this checks if the plane is near or over enemy teritory GamePlay.GamePlay.gpFrontDistance(int army, double x, double y); returns a double that gives the distance to enemy front (if exist) it returns 0 if you are over enemy teritory or the area you specify. if you would know the distance to friendly teritory simply set for army the same army you are. Before you should check with GamePlay.gpFrontExist() (returns bool) if a front (frontmarkers) exist. Last edited by FG28_Kodiak; 10-03-2011 at 09:52 AM. |
|
#3
|
|||
|
|||
|
Kodiak, bitte um Entschuldigung.
Es gelingt mir nicht die Stuka's aufsteigen zu lassen. Lookaloft. |
|
#4
|
|||
|
|||
|
Im FMB bei den Stukas den Haken bei Untätig rausnehmen, ist ne ältere Multiplayer Übungskarte, die ich für mein Geschwader gebastelt habe. Und ich nur auf die Schnelle gepostet habe da jemand nach einem Beispiel für Fahrzeuge und Spline Straßen gefragt hat.
Du kannst auch das Script einbauen das ich hier gepostet habe: http://forum.1cpublishing.eu/showthread.php?t=26402 damit kannst du die Flieger über das Kommunikationsmenü starten lassen. |
|
#5
|
|||
|
|||
|
Thanks Kodiak!
Ming |
|
#6
|
|||
|
|||
|
Thanks Kodiak, very instructive!
Lookaloft |
![]() |
| Thread Tools | |
| Display Modes | |
|
|