Object::streamingRange: Difference between revisions
(Created page with "{{ClientsideJsFunction}} {{JSContainer| This property will set the object's streaming distance (range). ===Required Params=== *'''distance:''' {{RageType|number}} ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript"> object.streamingRange = distance; </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position); object.streamingRange = 3...") |
No edit summary |
||
| Line 17: | Line 17: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position); | const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position); | ||
object.notifyStreaming = true; | |||
object.streamingRange = 300; | object.streamingRange = 300; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 09:48, 19 August 2024
Client-Side Function
JavaScript Syntax
This property will set the object's streaming distance (range).
Required Params
- distance: number
Return value
- number
Syntax
object.streamingRange = distance;
Example
const object = mp.objects.new(mp.game.joaat("02gate3_l"), mp.players.local.position);
object.notifyStreaming = true;
object.streamingRange = 300;
See also
- Functions:
- Object::Object
- Object::ObjectWeak
- Object::ObjectWeapon
- Object.hasBeenBroken
- Object.isVisible
- Object.markForDeletion
- Object.placeOnGroundProperly
- Object.setActivatePhysicsAsSoonAsItIsUnfrozen
- Object.setPhysicsParams
- Object.setTargettable
- Object.slide
- Object.createGlowStyle
- Object.releaseGlowStyle
- Object.modifyGlowStyle
- Object.enableGlow