s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Components
MapInstance
chevron_left
Components
class
MapInstance
search
Constructors
functions
MapInstance
Properties
data_object
Bounds
data_object
ComponentVersion
data_object
EnableCollision
data_object
IsLoaded
data_object
MapName
data_object
NoOrigin
data_object
OnMapLoaded
data_object
OnMapUnloaded
data_object
UseMapFromLaunch
Methods
lock
OnCreateObject
lock
OnLoad
lock
OnTagsChanged
lock
OnUpdate
functions
UnloadMap
MapInstance
Allows you to load a map into the Scene. This can be either a vpk or a scene map.
class
Sandbox
.
account_tree
extends
Component
Sandbox.Engine
build
Constructors
1
MapInstance
(
)
data_object
Properties
9
Bounds
BBox
Get the world bounds of the map
ComponentVersion
int
EnableCollision
bool
IsLoaded
bool
True if the map is loaded
MapName
string
NoOrigin
bool
OnMapLoaded
Action
Called when the map has successfully loaded
OnMapUnloaded
Action
Called when the map has been unloaded
UseMapFromLaunch
bool
functions
Methods
5
OnCreateObject
(
go
,
kv
)
Override this to add components to a map object. Only called for map objects that are not implemented.
OnLoad
(
context
)
Task
OnTagsChanged
(
)
OnUpdate
(
)
UnloadMap
(
)
Unload the current map.
Inheritance
Component
MapInstance
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.