Closed Andonrai closed 1 year ago
There doesn't seem to be an issue.
Have you instantiated this object within the GameMode's OnInit function?
Are the characters located within the same virtual world and coordinates?
Please keep in mind that all game-related actions should be performed within the callback event, and not outside of it.
Additionally, please note that the "I"
in modelid
should be lowercase
import { GameMode, DynamicPickup } from "@infernus/core";
const gm = new GameMode();
gm.onInit = () => {
new DynamicPickup({
modelid: 19135,
type: 1,
x: 1536.8569,
y: -1688.5819,
z: 13.5469,
streamdistance: 20,
worldid: 0,
interiorid: 0,
}).create();
};
There doesn't seem to be an issue.
Have you instantiated this object within the GameMode's OnInit function?
Are the characters located within the same virtual world and coordinates?
Please keep in mind that all game-related actions should be performed within the callback event, and not outside of it.
Additionally, please note that the
"I"
inmodelid
should be lowercaseconst gm = new GameMode(); gm.onInit = () => { new DynamicPickup({ modelid: 19135, type: 1, x: 1536.8569, y: -1688.5819, z: 13.5469, streamdistance: 20, worldid: 0, interiorid: 0, }).create(); };
Solved, thank you.
I'm trying to create a pickup, but it doesn't show up in the game
Used code:
Values returned when creating the pickup: