@casual-simulation/causal-tree-client-socketio
Advanced tools
Changelog
V1.4.11
math.scaleVector(vector, scale)
function to make multiplying vectors by scalar values easy.@onServerJoined
event could be sent before all data was loaded.
Changelog
V1.4.4
crypto.asymmetric.keypair(secret)
- Creates a keypair that can be used for asymmetric encryption and decryption.crypto.asymmetric.encrypt(keypair, data)
- Encrypts some data using the given keypair.crypto.asymmetric.decrypt(keypair, secret, data)
- Decrypts some data using the given keypair and secret.dimension
bot form as a preferred alias to portal
.Changelog
V1.4.3
casualos
module.onBotsDiscovered
, onBotsRemoved
, onBotsUpdated
, createBot()
, destroyBot()
, and updateBot()
.Changelog
V1.3.12
/terms
(or at /terms-of-service.txt
)./privacy-policy
(or at /privacy-policy.txt
).setTimeout()
and setInterval()
timers that are currently active via the numberOfActiveTimers
property returned from perf.getStats()
.animateTag(bot, tag, options)
and clearAnimations(bot, tag?)
functions.
animateTag(bot, tag, options)
- Iteratively changes a tag mask value over time based on the options you provide.
bot
is the bot or list of bots that should be animated.tag
is the tag that should be animated.options
is an object that specifies how the tag should be animated. It has the following properties:
fromValue
- The starting value for the animation.toValue
- The ending value.duration
- The number of seconds that it should take for the tag to go from the starting value to the ending value.easing
- The options for easing the animation.tagMaskSpace
- The space that the tag should be changed in. If set to false
then the tag on the bot will be directly edited.clearAnimations(bot, tag?)
- Cancels animations on a bot.
bot
- The bot or list of bots that should have their animations canceled.tag
- Is optional and is the tag that the animations should be canceled for.#labelFontSize = auto
when #labelPosition != front
or when the bot is rotated.Changelog
V1.3.11
#labelFontSize
tag to control the sizing of the characters in a label. Unlike #labelSize
, changing this value will cause the label to layout again which will affect word wrapping. Possible values are:
auto
- Specifies that the system should try to find a font size that fits the text onto the bot. (default)#labelWordWrapMode
tag to control the word wrapping behavior of labels. Possible values are:
breakCharacters
- Specifies that the system should insert line breaks inside words if needed.breakWords
- Specifies that the system should insert line breaks between words if needed.none
- Specifies that the system should not insert line breaks.placeholderColor
option when calling player.showChat()
.