Jump to content
Sign in to follow this  
skryp

get p3d out of an Object

Recommended Posts

Hello,

 

if work a little bit around and have a problem with my script.

 

i have a list with a bunch of p3d wich is used for an if request (_interactionVehicleGroupClassName).

So the next step i want to do is this:

_aroundVehicle = nearestObjects [player,["Car","Trucks"],20];
_interactionVehicleGroupModels = getArray(missionConfigFile >> "CfgInteractionModels" >> _interactionVehicleGroupClassName >> "models");
for "_i" from 0 to count (_aroundVehicle) do
{
	if ((_aroundVehicle select _i) in _interactionVehicleGroupClassName) then 
	{
		["deleteVehicle", [netId _aroundVehicle select _i]] call ExileClient_system_network_send;
	};
};

if i understand it right, _aroundVehicle is an array full of objects. and these object is also an array full with f.e. [59e51600# 1813671: mas_ural_repair.p3d REMOTE] .

so how can i get the p3d out of this object? 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×