#applyKnockback vs applyImpulse?

1 messages · Page 1 of 1 (latest)

warped kraken
#

Is there a way to tell which methods work for which types of entities? players don't work with applyImpulse and I've just found out that tnt and tnt minecarts don't work with applyKnockback

is there any way to tell which methods will work ahead of testing by hand?

real gorge
#

you are able to use applyImpulse on Actors(Entities)

#

in script api, they don't distinguish between mobs and entities

warped kraken
#

is there native documentation anywhere or some way to test what is a mob and what is an entity?

real gorge
#

maybe no

#

if you are not sure

#

just use applyImpulse

warped kraken
#

ty

polar leaf
#

or just use the typeid of player. I mens there's no other IDs for every player just one 🤷

#

tho if you are intelligent enough, convert applyImpulse to applyKnockback

warped kraken
# polar leaf Entity clsss

isn't anything with an entity file an entity though?
If I understand right players and maybe simulated players are the only things impulse doesn't work on because they aren't "entities" in the script?

#

how come both apply impulse and apply knockback work on regular entities like creepers though?

polar leaf
#

Simple fix.

#

why overthink things too much

warped kraken
#

i'm trying to figure out why one or the other method doesn't work and in which cases

#

my code already works

polar leaf
#

you know .setRotation() yes it doesn't work with players, but works on entities

polar leaf
timber wasp
#

-# mb

warped kraken
polar leaf
polar leaf
#

and @warped raft

warped kraken
#

i meant they weren't in the learn documentation, not jayly's

#

like the second link only has 15 methods on the player page

#

i thought the learn page was the official doccumentation

polar leaf
#

or channel we can say

warped raft
#

Interesting... they disabled inheritance for the microsoft docs

eager epoch
#

@warped raft do u have 0.1.0 or 1.0.0 microsoft docs

warped raft
warped raft
#

I don’t think it’s worth the effort to document alpha modules at the moment especially v0.x, those APIs have no official docs, no changelog etc.

#

Gametest alpha module is in my docs (unintentionally) because it doesn’t use the old naming scheme

eager epoch
warped raft
eager epoch
#

oh ok