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???
function PrincipalEEinit ()
{
door_trig = GetEnt ( "doorEE" , "targetname" );
door_trig SetHintString ( "This door is opened somewhere else" );
door_trig SetCursorHint ( "HINT_NOICON" );
level . opendoor = 0 ;
level . dooropened = 3 ;
thread onpainting1 ();
thread onpainting2 ();
thread onpainting3 ();
}
function onpainting1 ()
{
painting1 = GetEnt ( "1stpainting" , "targetname" );
painting1 waittill ( "trigger" , player );
painting1 SetCursorHint ( "HINT_NOICON" );
model1 = GetEnt ( "1rstmodel" , "targetname" );
model1 delete ();
level . opendoor ++ ;
thread finishedEE ();
painting1 delete ();
}
function onpainting2 ()
{
painting2 = GetEnt ( "2ndpainting" , "targetname" );
painting2 waittill ( "trigger" , player );
painting2 SetCursorHint ( "HINT_NOICON" );
model2 = GetEnt ( "2ndmodel" , "targetname" );
model2 delete ();
level . opendoor ++ ;
painting2 delete ();
}
function onpainting3 ()
{
painting3 = GetEnt ( "3rdpainting" , "targetname" );
painting3 waittill ( "trigger" , player );
painting3 SetCursorHint ( "HINT_NOICON" );
model3 = GetEnt ( "3rdmodel" , "targetname" );
model3 delete ();
level . opendoor ++ ;
thread FinishedEE ();
painting3 delete ();
}
function FinishedEE
{
I dont know what to put here : }
}
ModmeBot :
Reply By: TrueGamerCalls
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 ??? function PrincipalEEinit () { door_trig = GetEnt ( "doorEE" , "targetname" ); door_trig SetHintString ( "This door is opened somewhere else" ); door_trig SetCursorHint ( "HINT_NOICON" ); level . opendoor = 0 ; level . dooropened = 3 ; thread onpainting1 (); thread onpainting2 (); thread onpainting3 (); } function onpainting1 () { painting1 = GetEnt ( "1stpainting" , "targetname" ); painting1 waittill ( "trigger" , player ); painting1 SetCursorHint ( "HINT_NOICON" ); model1 = GetEnt ( "1rstmodel" , "targetname" ); model1 delete (); level . opendoor ++ ; thread finishedEE (); painting1 delete (); } function onpainting2 () { painting2 = GetEnt ( "2ndpainting" , "targetname" ); painting2 waittill ( "trigger" , player ); painting2 SetCursorHint ( "HINT_NOICON" ); model2 = GetEnt ( "2ndmodel" , "targetname" ); model2 delete (); level . opendoor ++ ; painting2 delete (); } function onpainting3 () { painting3 = GetEnt ( "3rdpainting" , "targetname" ); painting3 waittill ( "trigger" , player ); painting3 SetCursorHint ( "HINT_NOICON" ); model3 = GetEnt ( "3rdmodel" , "targetname" ); model3 delete (); level . opendoor ++ ; thread FinishedEE (); painting3 delete (); } function FinishedEE { I dont know what to put here : } }
Just put "easter_egg_door" as the target name for the door ( EDIT : I fucked up the formatting , I can & #39;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 & lt ; eedoor . size ; i ++ ) { = "" eedoor = "" [ i ] = "" delete (); = "" } = "" } = "" & gt ; & lt ; / eedoor . size ; i ++ ) & gt ;
ModmeBot :
Reply By: hubigygjjik
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