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

Members Online

»
0 Active | 68 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
Page
Previous Page
subscribe
Author Topic: enable linkto
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Thursday, Jul. 22, 2010 06:14 pm
doesnt work it was "unitalised variable "targetname"" anyway im trying soemthing out hopefully it'll work
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Thursday, Jul. 22, 2010 06:37 pm
this runs anyway, later or tomorrow if i remember i will add a trigger activated one =)

Quote:
main()
{
maps\mp\_load::main();

thread slidedoor();
}

slidedoor()

{
slidedoor = getent("slideopen","targetname");
slidedoor_hurt = getent("slideopen_hurt","targetname");
slidedoor_hurt enablelinkto();
slidedoor_hurt linkto(slidedoor);

while(1)

{
slidedoor movez(80,2);
wait 1.5;
slidedoor movez(-80,2);
wait 1.5;
}
}

Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Thursday, Jul. 22, 2010 07:15 pm
Quote:
main()
{
maps\mp\_load::main();
thread slidedoor();
}

slidedoor()
{
trig = getent("slideopener","targetname");
slidedoor = getent("slideopen","targetname");
slidedoor_hurt = getent("slideopen_hurt","targetname");
slidedoor_hurt enablelinkto();
slidedoor_hurt linkto(slidedoor);

while(1)
{
trig waittill ("trigger");
wait (2);
slidedoor movez(80,2);
slidedoor waittill ("movedone");
wait (2);
// trig waittill ("trigger");
slidedoor movez(-80,2);
// slidedoor waittill ("movedone");
wait 1.5;
}
}


heres the trigger one. were the 2 slashs are if you take them out it will be a push to get it up and a push to get it down.

Thanks, Ukdjaj[thumbs_up]
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»