// NetworkAddMapEntityToSynchronisedScene
void NETWORK_ADD_MAP_ENTITY_TO_SYNCHRONISED_SCENE(int netScene, Hash modelHash, float x, float y, float z, char* animDict, char* animName, float blendInSpeed, float blendOutSpeed, int flags);
Parameters:- netScene:
Net scene ID returned by NETWORK_CREATE_SYNCHRONISED_SCENE
- modelHash:
Model hash of the object the script should look for.
- x:
Object X coord.
- y:
Object Y coord.
- z:
Object Z coord.
- animDict:
Anim dictionary to play on this object.
- animName:
Anim name to play on this object.
- blendInSpeed:
Float representing how quickly the animation should be blended into. Default is 8.0
.
- blendOutSpeed:
Float representing how quickly the animation should be blended out of. Default is -8.0
- flags:
See NETWORK_ADD_PED_TO_SYNCHRONISED_SCENE
.
Adds a map entity to a network synchronized scene. This native function is utilized only once as of game build 2944 within the casino_slots script.
Please note that it's only possible to add a single map entity to synchronised scenes.
It's advisable to initially locate the object and retrieve its actual coordinates using GET_CLOSEST_OBJECT_OF_TYPE
.
NativeDB Introduced: v1734