Forum Jump :

Author Message

meow  



Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2018-05-12 16:16        
     
Maps with destroyed vehicles as static objects are called by the map.
Is it possible to replace "destroyed_vehicle.p3d" with "empty.p3d", then in the config.bin call createVehicle?
The goal is to replace all the destroyed tanks ect with a vehicle at their location.


Author Message

HazJ  



Posts: 165
Rank:


Level: Member

Country: uk
Location: [0, 0, 1000]
Occupation: Full Stack Developer
Age: 23
In-game name: Haz

 
#2 Posted at 2018-06-23 04:44        
     
Only 41 days old. :-)
Why not just hide wreck types or whatever that you don't want? See info on Wiki.
https://community.bistudio.com/wiki/nearestTerrainObjects
if (isServer) then 
{
	{
		_x hideObjectGlobal true;
	} forEach nearestTerrainObjects [[(worldSize / 2), (worldSize / 2)], ["whatever"], worldSize, false];
};

EDIT: If you are new to scripting or don't want to use it / prefer an easy way. There is a module which you can place down and configure.

This post was edited by HazJ (2018-06-27 08:19, 112 days ago)

Haz