Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 62 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: how to you make brushmodels rotate
WesMapzor
General Member
Since: Aug 24, 2008
Posts: 17
Last: Dec 4, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Sunday, Oct. 5, 2008 09:36 pm
how do you make brushmodels rotate on the spot basicly?

  1. main()
    {
    thread ele_slider ();
    }

    ele_slider()
    {

    ele=getent("tram","targetname");

    trig=getent("tramswitch","targetname");

    while(1)
    {
    trig waittill ("trigger");
    wait (1);
    ele movey (2600,10,2,5.20);
    ele waittill ("movedone");
    wait (5);
    ele movey (2600,10,2,5.20);
    ele waittill ("movedone");

    wait (5);
    ele movez (2600,10,2,5.20);
    ele waittill ("movedone");
    wait (1);
    ele movey (-2600,10,2,5.15);
    ele waittill ("movedone");
    wait (5);
    ele movey (-2600,10,2,5.20);
    ele waittill ("movedone");
    wait (5);
    ele movez (-2600,5,10,5.15);
    ele waittill ("movedone");


    }
    }


Lasts a basicly moving object and i need to know how to make it rotate after movign a certain distance

edited on Oct. 5, 2008 05:37 pm by WesMapzor

edited on Oct. 5, 2008 05:38 pm by WesMapzor
Share |
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 754
Last: Jan 23, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Sunday, Oct. 5, 2008 09:57 pm
Have a look into the vCoD 'moving things' tut
http://www.modsonline.com/Tutorials-read-121.html
There you'll find all commands for moving/rotating things.

edited on Oct. 5, 2008 05:58 pm by OLD_MAN_WITH_GUN
Share |
FiremanPaul
General Member
Since: Nov 6, 2006
Posts: 84
Last: Oct 1, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Oct. 5, 2008 10:21 pm
If you just want the brush model to rotate, not change position, you might want to try this tut: http://www.modsonline.com/Tutorials-read-481.html It includes the needed gsc
Share |
WesMapzor
General Member
Since: Aug 24, 2008
Posts: 17
Last: Dec 4, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Monday, Oct. 6, 2008 05:55 am
Ahh Right, Thank you very much both of you :D
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»