Search the Community
Showing results for tags 'enemy'.
Found 4 results
Hello. I am very new to coding. I need a code/script to make enemies know where all the player location are and follow them (they do it automatically anyway?) Basically i need to make the AI know the location of all player and hunt them down, even if they where spawned in via script or already ingame. preferably in a loop maybe? so they get updated, i donno every 30 seconds? or more. Im very new and bad at coding, i tried reading up on it. but i failed. i tried google it, but to be real, i dont really know what to look for. Thanks. This is the last part of my mission to get it fully functional.
Hey everyone, I was wondering if someone could help me develop a script that would allow blufor units to only be able to enter Blufor vehicles as well as Opfor only being able to enter Opfor vehicles. I would need an array to be specific to what vehicles I would allow units to enter. I do not want the unit to be killed, just kicked out of the vehicle. Thanks, Kdubyadog556
Hi, It seems to me, BI changed the behavior of the findNearestenemy command. I use to display this "nearest enemy" (of player) by an icon using this command. What i remarked since Apex or 1.58 (not sure), is that the nearest enemy is no more the nearest one. Explanation: If player knows about ground unit and planes, the "nearest enemy" is quickly marked on plane, even if this asset is flying away more than 2Km and ground units fire at you. Same for tank, armored vehicle, in a lower priority than plane. Same for emptied vehicle. If crew dismount and fly, the "nearest enemy" remains for a while the emptied car, even if dangerous units are closer than it. If you are civilian, "nearest enemy" is an OPFOR, even if it has no intention to open fire at you... So, please, could you make that findNearestEnemy recovers this former behavior and hits the geographically nearest unit/asset able and motivated to kill the unit which is parameterized? I don't dislike the idea to have some classification by asset dangerousness, but this aim fails most of the time with the context (plane flying away, emptied car,..). Just focus on distance and "canfire" could be great. Thanks