SLB2k11

script Delete Rabbits and other Animals

22 posts in this topic

Create File in root of missionfile named deleteanimals.sqf

copy this in it:

waitUntil {
	{
		if(agent _x isKindOf "Snake_random_F" || agent _x isKindOf "Rabbit_F" || agent _x isKindOf "Bird") then {deleteVehicle agent _x};
	} forEach agents;
	sleep 10;
	false;
};

open init.sqf  copy this in it: [] execVM "deleteanimals.sqf";

and have fun without animals :)

 

5 people like this

Share this post


Link to post
Share on other sites

is an interesting idea I never had FPS issues with them the agents use less resources then normal AI but is way to much on map and is pointless having them until hunting is added.

just an idea for headless client make the cleanup on loop and in range of player/AI

if(!hasInterface && !isServer) exitwith {}; 
while { true } do {
	{
		if(agent _x isKindOf "Snake_random_F" || agent _x isKindOf "Rabbit_F" || agent _x isKindOf "Bird") then {deleteVehicle agent _x};
	} forEach (player nearEntities ['Man',100]);
	sleep 10;
  };

 

 

 

Share this post


Link to post
Share on other sites
Advertisement

Classnames for other Animals

Salema Salema_F
Salema Porgy swarm School_Salema_F
Ornate Ornate_random_F
Mackerel Mackerel_F
Tuna Tuna_F
Mullet Mullet_F
Catshark CatShark_F
Turtle Turtle_F
 

Share this post


Link to post
Share on other sites

Why you don't use the fish baseclass? 

don't kill Goopy the Landfish !!! xD

2 people like this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.