Help in the gsc scripting (Im doing a custom Easter Egg)
Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: hubigygjjik Hey im scripting an easter egg that when you press "F" in certain paintings then, a door opens. Well im doing it well but Im a little stuck when the door has to be opened, i dont know what to put. Any Help???
functionPrincipalEEinit(){door_trig=GetEnt("doorEE","targetname");door_trigSetHintString("This door is opened somewhere else");door_trigSetCursorHint("HINT_NOICON");level.opendoor=0;level.dooropened=3;threadonpainting1();threadonpainting2();threadonpainting3();}functiononpainting1(){painting1=GetEnt("1stpainting","targetname");painting1waittill("trigger",player);painting1SetCursorHint("HINT_NOICON");model1=GetEnt("1rstmodel","targetname");model1delete();level.opendoor++;threadfinishedEE();painting1delete();}functiononpainting2(){painting2=GetEnt("2ndpainting","targetname");painting2waittill("trigger",player);painting2SetCursorHint("HINT_NOICON");model2=GetEnt("2ndmodel","targetname");model2delete();level.opendoor++;painting2delete();}functiononpainting3(){painting3=GetEnt("3rdpainting","targetname");painting3waittill("trigger",player);painting3SetCursorHint("HINT_NOICON");model3=GetEnt("3rdmodel","targetname");model3delete();level.opendoor++;threadFinishedEE();painting3delete();}functionFinishedEE{Idontknowwhattoputhere:}}
ModmeBot:
Reply By: TrueGamerCalls
hubigygjjik
Heyimscriptinganeastereggthatwhenyoupress"F"incertainpaintingsthen,adooropens.WellimdoingitwellbutImalittlestuckwhenthedoorhastobeopened,idontknowwhattoput.AnyHelp???functionPrincipalEEinit(){door_trig=GetEnt("doorEE","targetname");door_trigSetHintString("This door is opened somewhere else");door_trigSetCursorHint("HINT_NOICON");level.opendoor=0;level.dooropened=3;threadonpainting1();threadonpainting2();threadonpainting3();}functiononpainting1(){painting1=GetEnt("1stpainting","targetname");painting1waittill("trigger",player);painting1SetCursorHint("HINT_NOICON");model1=GetEnt("1rstmodel","targetname");model1delete();level.opendoor++;threadfinishedEE();painting1delete();}functiononpainting2(){painting2=GetEnt("2ndpainting","targetname");painting2waittill("trigger",player);painting2SetCursorHint("HINT_NOICON");model2=GetEnt("2ndmodel","targetname");model2delete();level.opendoor++;painting2delete();}functiononpainting3(){painting3=GetEnt("3rdpainting","targetname");painting3waittill("trigger",player);painting3SetCursorHint("HINT_NOICON");model3=GetEnt("3rdmodel","targetname");model3delete();level.opendoor++;threadFinishedEE();painting3delete();}functionFinishedEE{Idontknowwhattoputhere:}}
Justput"easter_egg_door"asthetargetnameforthedoor(EDIT:Ifuckeduptheformatting,Ican't edit the code so I hope you know how to format)
TrueGamerCalls Just put "easter_egg_door" as the target name for the door (EDIT: I fucked up the formatting, I can't edit the code so I hope you know how to format) function FinishedEE() { if(level.opendoor == 3) { eedoor = GetEntArray("easter_egg_door","targetname"); for(i=0;i<eedoor.size;i++) {="" eedoor="" ="" delete();="" }="" }=""></eedoor.size;i++)>
Oh thanks bro! I also had to put the targetname "easter_egg_door" to the clip to get it working but thankss