Something went wrong. Try again.
[Read-only GitHub mirror] docs.pvzm.net
Something went wrong. Try again.
667 B · 39 lines
Markdown
at main
icon: function #
CustomSpecial #
Places a plant.
Signature #
CustomSpecial(PlantClass, row, column, extraArgs?) => Plant
Parameters #
PlantClass
The class of the desired plant.row
The row the plant will be placed on.column
The column the plant will be placed on.extraArgs
Optional. Class-specific configuration passed toBirth.
Behavior #
Calls the requested PlantClass's Birth method with extraArgs passed at the end.
Returns #
Returns the instantiated plant object.
Example #
// Spawn a Peashooter at the 4th row and 3rd column
CustomSpecial(oPeashooter, 4, 3);