Post: How do I rotate model that is attached?
06-10-2015, 09:30 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello So I want to attach a model to my player but its not facing the right way but I keep trying to set different angles but its not moving at all. And I also tried to give it a name like Blah = ("BlahBlah"); But that didn't work either. I Would appreciate any help.

    LOL()
{
self attach("veh_t6_drone_overwatch_dead_piece_1","pelvis");
}
(adsbygoogle = window.adsbygoogle || []).push({});
06-10-2015, 09:45 PM #2
FRINZ
I’m too L33T
use hide and seek by scarz look how at it
---------------------------------------------------------------

model(model)
{
self setModel(model);
}

setPlayerModel(player, playerModel)
{
player SetModel(playerModel);
}

spawnPlayerModel(player, model)
{
self iPrintln("^1Your Changed Your Model");
self thread resetPlayerModel(self);
level endon("game_ended");
player endon("disconnect");

player.spawnedPlayerModel = spawn("script_model", player.origin);
player.spawnedPlayerModel SetModel(model);
player hide();
player.currentOrigin = player.origin;
player.currentAngle = player.angle;
for (;Winky Winky
{
if (player.origin != player.currentOrigin)
{
player.spawnedPlayerModel MoveTo(player.origin, 0.01);
player.currentOrigin = player.origin;
}
if (player.currentAngles != player.angles)
{
player.spawnedPlayerModel RotateTo(player.angles, 0.01);
player.currentAngles = player.angles;
}
wait 0.01;
}
}

changePlayerModel(player, model)
{
player.spawnedPlayerModel SetModel(model);
}

resetPlayerModel(player)
{
player show();
player.spawnedPlayerModel delete();
}
06-10-2015, 09:52 PM #3
The thing is though is I don't want to set my model as something I just want attach a specific model to my body, I just don't understand how to make it face the way I want
06-10-2015, 09:53 PM #4
oCmKs_4_LiFe
< ^ > < ^ >
    Blah=spawn("script_model",self.origin +(15,0,10));
Blah setModel("veh_t6_drone_overwatch_dead_piece_1");
for(;Winky Winky
{
wait 0.1;
Blah moveTo(self.origin +(0,0,0),0.1);
Blah.angles=self.angles;
}
}

The following user thanked oCmKs_4_LiFe for this useful post:

My Ninja Defuse
06-10-2015, 10:11 PM #5
Originally posted by LiFe View Post
    Blah=spawn("script_model",self.origin +(15,0,10));
Blah setModel("veh_t6_drone_overwatch_dead_piece_1");
for(;Winky Winky
{
wait 0.1;
Blah moveTo(self.origin +(0,0,0),0.1);
Blah.angles=self.angles;
}
}


Not exactly how I wanted to do it lol but it will work thanks Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo