pwnstar23 10 Posted June 11, 2010 (edited) 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 June 11, 2010 by pwnstar23 Share this post Link to post Share on other sites
-ASA-ODEN 0 Posted June 11, 2010 Change "scope" to "public" and use "<class> createVehicle <position>". Share this post Link to post Share on other sites
Big Dawg KS 5 Posted June 11, 2010 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
Deadfast 43 Posted June 11, 2010 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