Ancordia_PRC8/_module/nss/cb_swivelthrone2.nss

10 lines
361 B
Plaintext
Raw Permalink Normal View History

2023-09-21 19:51:32 -04:00
void main()
{
location lThrone = GetLocation(OBJECT_SELF);
vector vThrone = GetPositionFromLocation(lThrone);
float fThroneFacing = GetFacingFromLocation(lThrone) - 45;
lThrone = Location(GetArea(OBJECT_SELF),vThrone, fThroneFacing);
DestroyObject(OBJECT_SELF, 0.1);
CreateObject(OBJECT_TYPE_PLACEABLE, "swivelthrone", lThrone, TRUE);
}