script help
Moderator: Core Staff
script help
hi guys i need help on a script i want my door to open if a player press use key can you post a script that will do that
thanks
thanks
Re: script help
Code: Select all
main()
{
thread door1_rotate();
}
door1_rotate()
{
door1 = getent("door", "targetname");
trig = getent("trig_door", "targetname");
while (1)
{
trig waittill("trigger");
door1 playsound("dooropen");
door1 rotateyaw(90, 1.5, 0.7, 0.7);
door1 waittill("rotatedone");
wait (3);
door1 playsound("doorclose");
door1 rotateyaw(-90, 1.5, 0.7, 0.7);
door1 waittill("rotatedone");
}
}
Code: Select all
main()
{
maps\mp\_load::main();
maps\mp\mp_filename::main();
}
Re: script help
doesnt work i get could not find maps/mp/_open.gsc
Re: script help
I'm guessing you meant "maps/mp/mp_open.gsc"?Turbo2233 wrote:doesnt work i get could not find maps/mp/_open.gsc
A .gsc file isn't automatically created for your map, you have to make one from scratch. If that's the case, copy Goro92's code, paste it into wordpad/notepad and save as mp_open.gsc
Re: script help
nvm i got the anser from this linkPedsdude wrote:I'm guessing you meant "maps/mp/mp_open.gsc"?Turbo2233 wrote:doesnt work i get could not find maps/mp/_open.gsc
A .gsc file isn't automatically created for your map, you have to make one from scratch. If that's the case, copy Goro92's code, paste it into wordpad/notepad and save as mp_open.gsc
http://modsonline.com/Tutorials-read-658.html
thanks goro
Re: script help
Yes, thanks Goro for wasting your time responding to someone who clearly pays no attention to advice and then uses a tutorial he could have viewed before posting in the first place!
Who is online
Users browsing this forum: No registered users and 1 guest