EditPersistentObject(persistentObjectId , new_persistentObjectStruct)
Description
Syntax
EditPersistentObject(persistentObjectId , new_persistentObjectStruct)Argument
Description
Returns
N/AExample Implementation
//Get the ball first (assuming you dont know its POid)
var ballPOid = -1;
with(oPersistentObject){
if(persistentObjectProperties.type == "ball"){
ballPOid = persistentObjectId
}
}
var ball_updated = {
type: "ball",
_x : 400,
_y : 400
}
EditPersistentObject(ballPOid,ball_updated)Last updated