samp map editor
#1

this might be the wrong section to post this but i have a question

how do i move all of my objects (~300 objects) at once WITH all the rotations

if there's any way or modification for that, please let me know, thanks
Reply
#2

Use texture studio, import your map into it, and use /gox /goy /goz as u want.
Reply
#3

You can add offset to x y z.
I released a script for move maps: https://sampforum.blast.hk/showthread.php?tid=506610
Reply
#4

This algorithm working only for 2D orientation.
PHP код:
for(new 1Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); <= ji++){
    if(
IsValidDynamicObject(i)){
        new 
Float:offset_x,Float:offset_y,Float:offset_z,
            
Float:ox,Float:oy,Float:oz,
            
Float:tx,Float:ty,Float:tz,
            
Float:dist;
    
        
GetDynamicObjectPos(i,ox,oy,oz);
        
ShiftPositionToOffset(3400.0,0.0,0.0,    0.0,0.0,0.0,    offset_x,offset_y,offset_z,    ox,oy,oz); //started position
        
        
dist VectorSize(offset_x,offset_y,offset_z);
        
        
ShiftVectorRotation(offset_x,offset_y,offset_z,    0.0,0.0,180.0,    tx,ty,tz); //new rotation here
        
        
tx *= dist;
        
ty *= dist;
        
tz *= dist;
        
        
ShiftOffsetToPosition(3200.0,0.0,0.0,    0.0,0.0,0.0,    tx,ty,tz,    ox,oy,oz); //new position
        
SetDynamicObjectPos(i,ox,oy,oz);
        
        
GetDynamicObjectRot(i,ox,oy,oz);
        
SetDynamicObjectRot(i,ox,oy,oz+180.0); //new rotation here
    
}

In this example:
old pos: 3400.0,0.0,0.0
old: rz: 0.0

new pos: 3200.0,0.0,0.0
new rz: 180.0

Libs:
3DTryg.inc
Reply
#5

Quote:
Originally Posted by Flashhiee
Посмотреть сообщение
Use texture studio, import your map into it, and use /gox /goy /goz as u want.
Thanks ;*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)