> For the complete documentation index, see [llms.txt](https://docs.pvzm.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pvzm.net/engine/reference/cfunction.js.md).

# Cfunction.js

- [$User](https://docs.pvzm.net/engine/reference/cfunction.js/usduser.md)
- [oSym](https://docs.pvzm.net/engine/reference/cfunction.js/osym.md)
- [oS](https://docs.pvzm.net/engine/reference/cfunction.js/os.md)
- [oCoord](https://docs.pvzm.net/engine/reference/cfunction.js/ocoord.md)
- [oP](https://docs.pvzm.net/engine/reference/cfunction.js/op.md)
- [oGd](https://docs.pvzm.net/engine/reference/cfunction.js/ogd.md)
- [oZ](https://docs.pvzm.net/engine/reference/cfunction.js/oz.md)
- [oT](https://docs.pvzm.net/engine/reference/cfunction.js/ot.md)
- [asyncInnerHTML](https://docs.pvzm.net/engine/reference/cfunction.js/asyncinnerhtml.md)
- [WhichMouseButton](https://docs.pvzm.net/engine/reference/cfunction.js/whichmousebutton.md)
- [GroundOnmousedown](https://docs.pvzm.net/engine/reference/cfunction.js/groundonmousedown.md)
- [GetAP](https://docs.pvzm.net/engine/reference/cfunction.js/getap.md)
- [GroundOnkeydown](https://docs.pvzm.net/engine/reference/cfunction.js/groundonkeydown.md)
- [KeyBoardGrowPlant](https://docs.pvzm.net/engine/reference/cfunction.js/keyboardgrowplant.md)
- [GroundOnmousemove](https://docs.pvzm.net/engine/reference/cfunction.js/groundonmousemove.md)
- [GroundOnmousemove1](https://docs.pvzm.net/engine/reference/cfunction.js/groundonmousemove1.md)
- [GroundOnmousemove2](https://docs.pvzm.net/engine/reference/cfunction.js/groundonmousemove2.md)
- [DisplayZombie](https://docs.pvzm.net/engine/reference/cfunction.js/displayzombie.md)
- [AutoSelectCard](https://docs.pvzm.net/engine/reference/cfunction.js/autoselectcard.md)
- [InitPCard](https://docs.pvzm.net/engine/reference/cfunction.js/initpcard.md)
- [InitHandBookPCard](https://docs.pvzm.net/engine/reference/cfunction.js/inithandbookpcard.md)
- [lastB](https://docs.pvzm.net/engine/reference/cfunction.js/lastb.md)
- [VIewProducePlant](https://docs.pvzm.net/engine/reference/cfunction.js/viewproduceplant.md)
- [ViewProduceZombie](https://docs.pvzm.net/engine/reference/cfunction.js/viewproducezombie.md)
- [ViewCardTitle](https://docs.pvzm.net/engine/reference/cfunction.js/viewcardtitle.md)
- [ViewGenericMouseover](https://docs.pvzm.net/engine/reference/cfunction.js/viewgenericmouseover.md)
- [SelectCard](https://docs.pvzm.net/engine/reference/cfunction.js/selectcard.md)
- [ResetSelectCard](https://docs.pvzm.net/engine/reference/cfunction.js/resetselectcard.md)
- [LetsGO](https://docs.pvzm.net/engine/reference/cfunction.js/letsgo.md)
- [ViewPlantTitle](https://docs.pvzm.net/engine/reference/cfunction.js/viewplanttitle.md)
- [BeginCool](https://docs.pvzm.net/engine/reference/cfunction.js/begincool.md)
- [ImmediatelyCool](https://docs.pvzm.net/engine/reference/cfunction.js/immediatelycool.md)
- [MonitorCard](https://docs.pvzm.net/engine/reference/cfunction.js/monitorcard.md)
- [DoCoolTimer](https://docs.pvzm.net/engine/reference/cfunction.js/docooltimer.md)
- [ChosePlant](https://docs.pvzm.net/engine/reference/cfunction.js/choseplant.md)
- [CancelPlant](https://docs.pvzm.net/engine/reference/cfunction.js/cancelplant.md)
- [ShovelPlant](https://docs.pvzm.net/engine/reference/cfunction.js/shovelplant.md)
- [ChoseShovel](https://docs.pvzm.net/engine/reference/cfunction.js/choseshovel.md)
- [CancelShovel](https://docs.pvzm.net/engine/reference/cfunction.js/cancelshovel.md)
- [StopBubble](https://docs.pvzm.net/engine/reference/cfunction.js/stopbubble.md)
- [GrowPlant](https://docs.pvzm.net/engine/reference/cfunction.js/growplant.md)
- [AutoProduceSun](https://docs.pvzm.net/engine/reference/cfunction.js/autoproducesun.md)
- [AppearSun](https://docs.pvzm.net/engine/reference/cfunction.js/appearsun.md)
- [MoveDropSun](https://docs.pvzm.net/engine/reference/cfunction.js/movedropsun.md)
- [DisappearSun](https://docs.pvzm.net/engine/reference/cfunction.js/disappearsun.md)
- [ClickSun](https://docs.pvzm.net/engine/reference/cfunction.js/clicksun.md)
- [MoveClickSun](https://docs.pvzm.net/engine/reference/cfunction.js/moveclicksun.md)
- [AutoClickSun](https://docs.pvzm.net/engine/reference/cfunction.js/autoclicksun.md)
- [ShowLargeWave](https://docs.pvzm.net/engine/reference/cfunction.js/showlargewave.md)
- [ShowFinalWave](https://docs.pvzm.net/engine/reference/cfunction.js/showfinalwave.md)
- [ShowBOSS](https://docs.pvzm.net/engine/reference/cfunction.js/showboss.md)
- [GameOver](https://docs.pvzm.net/engine/reference/cfunction.js/gameover.md)
- [GameOverZombies](https://docs.pvzm.net/engine/reference/cfunction.js/gameoverzombies.md)
- [PrepareGrowPlants](https://docs.pvzm.net/engine/reference/cfunction.js/preparegrowplants.md)
- [CustomPlants](https://docs.pvzm.net/engine/reference/cfunction.js/customplants.md)
- [CustomSpecial](https://docs.pvzm.net/engine/reference/cfunction.js/customspecial.md)
- [CheckAutoSun](https://docs.pvzm.net/engine/reference/cfunction.js/checkautosun.md)
- [GetNewCard](https://docs.pvzm.net/engine/reference/cfunction.js/getnewcard.md)
- [getCookie1](https://docs.pvzm.net/engine/reference/cfunction.js/getcookie1.md)
- [getCookie](https://docs.pvzm.net/engine/reference/cfunction.js/getcookie.md)
- [addCookie](https://docs.pvzm.net/engine/reference/cfunction.js/addcookie.md)
- [deleteCookie](https://docs.pvzm.net/engine/reference/cfunction.js/deletecookie.md)
- [WordUTF8](https://docs.pvzm.net/engine/reference/cfunction.js/wordutf8.md)
- [CheckIzlParameter](https://docs.pvzm.net/engine/reference/cfunction.js/checkizlparameter.md)
- [ShowNameDiv](https://docs.pvzm.net/engine/reference/cfunction.js/shownamediv.md)
- [ShowLoginDiv](https://docs.pvzm.net/engine/reference/cfunction.js/showlogindiv.md)
- [CheckLogin](https://docs.pvzm.net/engine/reference/cfunction.js/checklogin.md)
- [SelectModal](https://docs.pvzm.net/engine/reference/cfunction.js/selectmodal.md)
- [GotoAuthorWebsite](https://docs.pvzm.net/engine/reference/cfunction.js/gotoauthorwebsite.md)
- [InitGame](https://docs.pvzm.net/engine/reference/cfunction.js/initgame.md)
- [LoadLvl](https://docs.pvzm.net/engine/reference/cfunction.js/loadlvl.md)
- [AppearTombstones](https://docs.pvzm.net/engine/reference/cfunction.js/appeartombstones.md)
- [ResetGame](https://docs.pvzm.net/engine/reference/cfunction.js/resetgame.md)
- [PauseGame](https://docs.pvzm.net/engine/reference/cfunction.js/pausegame.md)
- [ClickMenu](https://docs.pvzm.net/engine/reference/cfunction.js/clickmenu.md)
- [OptionsMenuDown](https://docs.pvzm.net/engine/reference/cfunction.js/optionsmenudown.md)
- [OptionsMenuUP](https://docs.pvzm.net/engine/reference/cfunction.js/optionsmenuup.md)
- [ShowSpeed](https://docs.pvzm.net/engine/reference/cfunction.js/showspeed.md)
- [HiddenSpeed](https://docs.pvzm.net/engine/reference/cfunction.js/hiddenspeed.md)
- [CSpeed](https://docs.pvzm.net/engine/reference/cfunction.js/cspeed.md)
- [ShowLevel](https://docs.pvzm.net/engine/reference/cfunction.js/showlevel.md)
- [HiddenLevel](https://docs.pvzm.net/engine/reference/cfunction.js/hiddenlevel.md)
- [ShowMiniGame](https://docs.pvzm.net/engine/reference/cfunction.js/showminigame.md)
- [HiddenMiniGame](https://docs.pvzm.net/engine/reference/cfunction.js/hiddenminigame.md)
- [ShowRiddleGame](https://docs.pvzm.net/engine/reference/cfunction.js/showriddlegame.md)
- [HiddenRiddleGame](https://docs.pvzm.net/engine/reference/cfunction.js/hiddenriddlegame.md)
- [ShowOptions](https://docs.pvzm.net/engine/reference/cfunction.js/showoptions.md)
- [HiddenOptions](https://docs.pvzm.net/engine/reference/cfunction.js/hiddenoptions.md)
- [ViewHandBook](https://docs.pvzm.net/engine/reference/cfunction.js/viewhandbook.md)
- [ReturnHandBookInx](https://docs.pvzm.net/engine/reference/cfunction.js/returnhandbookinx.md)
- [CloseHandBook](https://docs.pvzm.net/engine/reference/cfunction.js/closehandbook.md)
- [ShowHelp](https://docs.pvzm.net/engine/reference/cfunction.js/showhelp.md)
- [HiddenHelp](https://docs.pvzm.net/engine/reference/cfunction.js/hiddenhelp.md)
- [$](https://docs.pvzm.net/engine/reference/cfunction.js/usd.md)
- [$n](https://docs.pvzm.net/engine/reference/cfunction.js/usdn.md)
- [ClearChild](https://docs.pvzm.net/engine/reference/cfunction.js/clearchild.md)
- [SetBlock](https://docs.pvzm.net/engine/reference/cfunction.js/setblock.md)
- [SetNone](https://docs.pvzm.net/engine/reference/cfunction.js/setnone.md)
- [SetHidden](https://docs.pvzm.net/engine/reference/cfunction.js/sethidden.md)
- [SetVisible](https://docs.pvzm.net/engine/reference/cfunction.js/setvisible.md)
- [SetAlpha](https://docs.pvzm.net/engine/reference/cfunction.js/setalpha.md)
- [SetStyle](https://docs.pvzm.net/engine/reference/cfunction.js/setstyle.md)
- [NewImg](https://docs.pvzm.net/engine/reference/cfunction.js/newimg.md)
- [EditImg](https://docs.pvzm.net/engine/reference/cfunction.js/editimg.md)
- [NewEle](https://docs.pvzm.net/engine/reference/cfunction.js/newele.md)
- [EditEle](https://docs.pvzm.net/engine/reference/cfunction.js/editele.md)
- [NewO](https://docs.pvzm.net/engine/reference/cfunction.js/newo.md)
- [SetPrototype](https://docs.pvzm.net/engine/reference/cfunction.js/setprototype.md)
- [InheritO](https://docs.pvzm.net/engine/reference/cfunction.js/inherito.md)
- [Compare](https://docs.pvzm.net/engine/reference/cfunction.js/compare.md)
- [$Switch](https://docs.pvzm.net/engine/reference/cfunction.js/usdswitch.md)
- [$SEql](https://docs.pvzm.net/engine/reference/cfunction.js/usdseql.md)
- [$SSml](https://docs.pvzm.net/engine/reference/cfunction.js/usdssml.md)
- [$SGrt](https://docs.pvzm.net/engine/reference/cfunction.js/usdsgrt.md)
- [ImgSpriter](https://docs.pvzm.net/engine/reference/cfunction.js/imgspriter.md)
- [Ajax](https://docs.pvzm.net/engine/reference/cfunction.js/ajax.md)
- [Date.prototype.format](https://docs.pvzm.net/engine/reference/cfunction.js/date.prototype.format.md)
- [NewMusic](https://docs.pvzm.net/engine/reference/cfunction.js/newmusic.md)
- [PauseMusic](https://docs.pvzm.net/engine/reference/cfunction.js/pausemusic.md)
- [StartAventure](https://docs.pvzm.net/engine/reference/cfunction.js/startaventure.md)
- [oAudio](https://docs.pvzm.net/engine/reference/cfunction.js/oaudio.md)
- [PausedAudioArr](https://docs.pvzm.net/engine/reference/cfunction.js/pausedaudioarr.md)
- [NewAudio](https://docs.pvzm.net/engine/reference/cfunction.js/newaudio.md)
- [PlayMusic](https://docs.pvzm.net/engine/reference/cfunction.js/playmusic.md)
- [PlayAudioLegacy](https://docs.pvzm.net/engine/reference/cfunction.js/playaudiolegacy.md)
- [PlayAudio](https://docs.pvzm.net/engine/reference/cfunction.js/playaudio.md)
- [PauseAudio](https://docs.pvzm.net/engine/reference/cfunction.js/pauseaudio.md)
- [StopMusic](https://docs.pvzm.net/engine/reference/cfunction.js/stopmusic.md)
- [StopAudio](https://docs.pvzm.net/engine/reference/cfunction.js/stopaudio.md)
- [AllAudioPaused](https://docs.pvzm.net/engine/reference/cfunction.js/allaudiopaused.md)
- [AllAudioPauseCanceled](https://docs.pvzm.net/engine/reference/cfunction.js/allaudiopausecanceled.md)
- [AllAudioMuted](https://docs.pvzm.net/engine/reference/cfunction.js/allaudiomuted.md)
- [AllAudioMuteCanceled](https://docs.pvzm.net/engine/reference/cfunction.js/allaudiomutecanceled.md)
- [CheckSilence](https://docs.pvzm.net/engine/reference/cfunction.js/checksilence.md)
- [AppearCard](https://docs.pvzm.net/engine/reference/cfunction.js/appearcard.md)
- [MoveDropCard](https://docs.pvzm.net/engine/reference/cfunction.js/movedropcard.md)
- [DIsappearCard](https://docs.pvzm.net/engine/reference/cfunction.js/disappearcard.md)
- [allPlantsStringArray](https://docs.pvzm.net/engine/reference/cfunction.js/allplantsstringarray.md)
- [allPlantsArray](https://docs.pvzm.net/engine/reference/cfunction.js/allplantsarray.md)
- [izombiePlantsMap](https://docs.pvzm.net/engine/reference/cfunction.js/izombieplantsmap.md)
- [CPlants](https://docs.pvzm.net/engine/reference/cfunction.js/cplants.md)
- [interpolate](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate.md)
- [easeInSine](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinsine.md)
- [easeOutSine](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutsine.md)
- [easeInOutSine](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutsine.md)
- [easeInQuad](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinquad.md)
- [easeOutQuad](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutquad.md)
- [easeInOutQuad](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutquad.md)
- [easeInCubic](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeincubic.md)
- [easeOutCubic](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutcubic.md)
- [easeInOutCubic](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutcubic.md)
- [easeInQuart](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinquart.md)
- [easeOutQuart](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutquart.md)
- [easeInOutQuart](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutquart.md)
- [easeInQuint](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinquint.md)
- [easeOutQuint](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutquint.md)
- [easeInOutQuint](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutquint.md)
- [easeInExpo](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinexpo.md)
- [easeOutExpo](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutexpo.md)
- [easeInOutExpo](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutexpo.md)
- [easeInCirc](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeincirc.md)
- [easeOutCirc](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutcirc.md)
- [easeInOutCirc](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutcirc.md)
- [easeInBack](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinback.md)
- [easeOutBack](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutback.md)
- [easeInOutBack](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutback.md)
- [easeInElastic](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinelastic.md)
- [easeOutElastic](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutelastic.md)
- [easeInOutElastic](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutelastic.md)
- [easeOutBounce](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeoutbounce.md)
- [easeInBounce](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinbounce.md)
- [easeInOutBounce](https://docs.pvzm.net/engine/reference/cfunction.js/interpolate/easeinoutbounce.md)
- [createZombie](https://docs.pvzm.net/engine/reference/cfunction.js/createzombie.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pvzm.net/engine/reference/cfunction.js.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
