[Read-only GitHub mirror] docs.pvzm.net
at main 39 lines 667 B view raw view rendered
1--- 2icon: function 3--- 4 5# CustomSpecial 6 7Places a plant. 8 9### Signature 10 11```javascript 12CustomSpecial(PlantClass, row, column, extraArgs?) => Plant 13``` 14 15### Parameters 16 17* `PlantClass`\ 18 The class of the desired plant. 19* `row`\ 20 The row the plant will be placed on. 21* `column`\ 22 The column the plant will be placed on. 23* `extraArgs`\ 24 Optional. Class-specific configuration passed to `Birth`. 25 26### Behavior 27 28Calls the requested `PlantClass`'s `Birth` method with `extraArgs` passed at the end. 29 30### Returns 31 32Returns the instantiated plant object. 33 34### Example 35 36```javascript 37// Spawn a Peashooter at the 4th row and 3rd column 38CustomSpecial(oPeashooter, 4, 3); 39```