Rotate Spawn Object.

Discuss thaw modding, post your own, share your ideas, ask questions.
Lezzer
Posts: 48
Joined: Tue Jan 04, 2011 10:50 am
Contact:

Rotate Spawn Object.

Postby Lezzer » Sun Jul 31, 2011 2:11 pm

Help Me Please.
Im Spawning Object.
And Spawn Script :
$name$ = $object_rotate$$angley$ = %GLOBAL%$rot_angle$
:i $rot_angle$ = (%GLOBAL%$rot_angle$ + %f(0.062500))
Error!
Help?
Anteara
Posts: 268
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Re: Rotate Spawn Object.

Postby Anteara » Sun Jul 31, 2011 3:06 pm

To rotate an object, use:

:i $TheName$.call $Obj_SetOrientation$ arguments
$X$ = %i(0,00000000)$y$ = %GLOBAL%$angle$$z$ = %i(0,00000000)


the int is the angle you want it rotated, so max is 360. x, y and z are the axes of which you can rotate on a maximum 360 degree angle.
Lezzer
Posts: 48
Joined: Tue Jan 04, 2011 10:50 am
Contact:

Re: Rotate Spawn Object.

Postby Lezzer » Tue Aug 02, 2011 9:24 am

How to make what the chamber moving together with moving object? And the player was at a stop.Sorry for my bad english.
Anteara
Posts: 268
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Re: Rotate Spawn Object.

Postby Anteara » Tue Aug 02, 2011 1:07 pm

I can't understand... Please speak in your main language.
Lezzer
Posts: 48
Joined: Tue Jan 04, 2011 10:50 am
Contact:

Re: Rotate Spawn Object.

Postby Lezzer » Tue Aug 02, 2011 1:48 pm

http://www.youtube.com/user/skejt23#p/a/u/1/fUoQInT_z9Q
The arrow moves, and the chamber too together with the chamber. How to make so?
Anteara
Posts: 268
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Re: Rotate Spawn Object.

Postby Anteara » Tue Aug 02, 2011 2:16 pm

Lezzer wrote:http://www.youtube.com/user/skejt23#p/a/u/1/fUoQInT_z9Q
The arrow moves, and the chamber too together with the chamber. How to make so?


The arrow is a composite object. So you can assign a name to it

for example

$Skater$.$Function$

could be

$Arrow$.$Function$

simply make a function that will get the pos of $Arrow$, then move the pos of $Skater$ to the pos of $Arrow$.

use the search function to find out how to make a composite object.
Lezzer
Posts: 48
Joined: Tue Jan 04, 2011 10:50 am
Contact:

Re: Rotate Spawn Object.

Postby Lezzer » Tue Aug 02, 2011 2:24 pm

And it is impossible to make so the player would be at a stop and the arrow moved together with the chamber.
As on video.
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Rotate Spawn Object.

Postby sMo0g™ » Sat Aug 13, 2011 10:47 pm

Lol, use this:

Code: Select all

:i $NameOfYourObject$.call $Obj_RotY$ arguments
  $speed$ = %i(200,000000c8)
:i endfunction

The same for X and Z.
Just change Obj_RotY

Return to “THAW modding”

Who is online

Users browsing this forum: No registered users and 44 guests