Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
pwnstar23

i need to spawn some vegitation

Recommended Posts

being that plants don't have classes (or none that i could find) how can i spawn some plants via a script at the players location?

also need to know how to delete them too.

---------- Post added at 09:04 PM ---------- Previous post was at 07:45 PM ----------

I think im going to need to make a custom class with a plant

how do i get my script to add my new class to the game?

class CfgVehicles
{

class marijuana : Ruins {
	scope = protected;
	vehicleClass = "Ruins";
	model = "\ca\plants2_plant\p_articum";
};
};

Edited by pwnstar23

Share this post


Link to post
Share on other sites

Change "scope" to "public" and use "<class> createVehicle <position>".

Share this post


Link to post
Share on other sites
ODEN;1647542']Change "scope" to "public" and use "<class> createVehicle <position>".

I'm pretty sure createVehicle works for any CfgVehicle, regardless of its scope. At least it used to.

Share this post


Link to post
Share on other sites
I'm pretty sure createVehicle works for any CfgVehicle, regardless of its scope. At least it used to.

It works for protected for sure, shouldn't with private though.

Public just makes it visible in the editor.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×