Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
It should be in the Origin scrip right?
another thing is, should I bind it to any "User properties"?
I know, I can just follow your instruction and change the name value, but I want to understand it a bit.
I will credit you for this. Thank you once again.ヾ(≧∇≦)ゞ
'use strict';
let xPekoraPosition = 1623; // default x position
let yPekoraPosition = 602; // default y position
/**
* @param {Vec3} value (for property 'origin')
*/
export function update(value) {
return new Vec3(xPekoraPosition, yPekoraPosition, 0); // set position
}
export function applyUserProperties(userProperties) {
// if a user property is set, change the default x and y values to those values
if (userProperties.pekora_x_position) {
xPekoraPosition = userProperties.pekora_x_position;
}
if (userProperties.pekora_y_position) {
yPekoraPosition = userProperties.pekora_y_position;
}
}