![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
@power on
Do you have attach a Airfield AI also? @car do you select the spline with the target command (waypoint) |
|
#2
|
|||
|
|||
|
Forgot to mention, I also have a baseAntiAir.cpp
You can set the vehicle to the sline roadway, but the vehicle just travels down the roadway (one-way) & doesn't turn around & come back
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 10-02-2011 at 07:55 PM. |
|
#3
|
|||
|
|||
|
No not this there must be a entry called AI, in the menu you select your planes, trains etc. Sorry have a german Version so i don't know exactly how this menues looks in other language versions. Make a Airfield Ai select the radius and connect the generators with this AI via target selection.
Quote:
Attachment sample searchlight mission Last edited by FG28_Kodiak; 10-02-2011 at 08:04 PM. |
|
#4
|
|||
|
|||
|
OK, I see how the searchlights are setup. Can you supply a car.cpp example please?
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE |
|
#5
|
|||
|
|||
|
A mission i made with splineroads NPC with car.cpp
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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 10:52 AM. |
![]() |
|
|