Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Light turn off on destroy

Author
Message
Veler
16
Years of Service
User Offline
Joined: 14th Jan 2008
Location: Boulogne Billancourt(92100)(France)
Posted: 14th Feb 2008 22:48
Good evening to everyone,

I would like to make sure that when you pull on a lamp, the light turns off, but I can not.

Can you help?

Thank you

VELER SOFTWARE = http://www.velersoftware.fr.nf

SOFTWARE CREATOR 2008 !!!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 14th Feb 2008 23:23
First, put the light marker, (the little lightbulb) down and make it dynamic.....

Set it's name to light, and it's main.fpi to lightoff.fpi.....

Then go to your switch and type in it's ifused box, light.....

Test the game and have fun playing with your light...

-=EDIT=-
You must have dynamic lights enabled in the Build Game though....

Veler
16
Years of Service
User Offline
Joined: 14th Jan 2008
Location: Boulogne Billancourt(92100)(France)
Posted: 15th Feb 2008 07:49
OK, thank,

But how I must do for that the light turn off when I shot on a lamp (the lamp explodes, normally, I do not know why, but she not explodes)

Thank you

EDIT: I'm sorry if you don't understand my problem because I bad in english

VELER SOFTWARE = http://www.velersoftware.fr.nf
SOFTWARE CREATOR 2008 !!!
OS Info XP
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 15th Feb 2008 12:07
First, put the light marker, (the little lightbulb) down and make it dynamic.....

Set it's name to light, and it's main.fpi to lightoff.fpi.....

Then go to your lamp and type in it's ifused box, light and give it the destroyandactivate.fpi in it's Main ai...

Test the game and have fun playing with your light...

-=EDIT=-
You must have dynamic lights enabled in the Build Game though....

Veler
16
Years of Service
User Offline
Joined: 14th Jan 2008
Location: Boulogne Billancourt(92100)(France)
Posted: 15th Feb 2008 13:28
It is good that works at present. Thank you for your assistance

To

VELER SOFTWARE = http://www.velersoftware.fr.nf
SOFTWARE CREATOR 2008 !!!
OS Info XP
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 15th Feb 2008 14:13
Merci beaucoup et au revoir!

Login to post a reply

Server time is: 2024-11-24 06:32:03
Your offset time is: 2024-11-24 06:32:03