Modme Forums
Menu:

Invisible brushes & models untill power on?

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: soul-toktzt

Is this actually possible?

I'd like to know because i'm planning to try to make something big with it after i've managed to finish the main part of the map.


ModmeBot:

Reply By: mathfag

maybe play with lighting states


ModmeBot:

Reply By: Abnormal202

Not sure exactly how Hide(); and Show(); work, but this should do it.

convert all the models and brushmodels you want to hide at the start to script_brushmodels and script_models.

give them all the targetname: "hidden"

put this somewhere in your mapname.gsc:

function hidden()
{
	hidden = GetEntArray("hidden","targetname");
	for(i=0;i<hidden.size;i++) {="" hidden[i]="" hide();="" }="" level="" flag::wait_till("power_on");="" for(i=""></hidden.size;i++)><hidden.size;i++) {="" hidden[i]="" show();="" }="" }=""></hidden.size;i++)>



and put this:

thread hidden();



right under:

function main()
{


ModmeBot:

Reply By: soul-toktzt

Abnormal202

Not sure exactly how Hide(); and Show(); work, but this should do it.

convert all the models and brushmodels you want to hide at the start to script_brushmodels and script_models.

give them all the targetname: "hidden"

put this somewhere in your mapname.gsc:

function hidden()
{
	hidden = GetEntArray("hidden","targetname");
	for(i=0;i<hidden.size;i++) {="" hidden[i]="" hide();="" }="" level="" flag::wait_till("power_on");="" for(i=""></hidden.size;i++)><hidden.size;i++) {="" hidden[i]="" show();="" }="" }=""></hidden.size;i++)>



and put this:

thread hidden();



right under:

function main()
{

i'll try this out after i've worked out something :)


ModmeBot:

Reply By: soul-toktzt

Abnormal202

Not sure exactly how Hide(); and Show(); work, but this should do it.

convert all the models and brushmodels you want to hide at the start to script_brushmodels and script_models.

give them all the targetname: "hidden"

put this somewhere in your mapname.gsc:

function hidden()
{
	hidden = GetEntArray("hidden","targetname");
	for(i=0;i<hidden.size;i++) {="" hidden[i]="" hide();="" }="" level="" flag::wait_till("power_on");="" for(i=""></hidden.size;i++)><hidden.size;i++) {="" hidden[i]="" show();="" }="" }=""></hidden.size;i++)>



and put this:

thread hidden();



right under:

function main()
{

it worked, thank you :)

(i Also reverted your script to make something hide when power's on :) )