Polytoria / Docs

Polytoria Scripting API documentation
https://docs.polytoria.com
7 stars 15 forks source link

Add `Damage` and `Headers` parameters for Environment and Http class #58

Closed indexxing closed 8 months ago

indexxing commented 8 months ago

Add Damage and Headers parameters for Environment and Http class

Alyxsqrd commented 8 months ago
  • Added Damage parameter to the Environment class :CreateExplosion method (I don't think it's in the correct spot, I think it's weird to have the parameter come after the callback, but that's what @Alyxsqrd told me so 🤷)

The damage parameter was added way after the CreateExplosion method was first created. So for backwards compatibility, we added it on the end (after the callback parameter) so games with old scripts wouldn't break from the order changing.

indexxing commented 8 months ago
  • Added Damage parameter to the Environment class :CreateExplosion method (I don't think it's in the correct spot, I think it's weird to have the parameter come after the callback, but that's what @Alyxsqrd told me so 🤷)

The damage parameter was added way after the CreateExplosion method was first created. So for backwards compatibility, we added it on the end (after the callback parameter) so games with old scripts wouldn't break from the order changing.

Oh, I forgot while writing that the damage parameter was new (or what I assumed, was new since I've never heard of it before on the :CreateExplosion method) that makes sense now