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 / destroy targets open door

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 4th Jan 2011 08:12
I am making a game in which the player must shoot and destroy several targets to pass through a locked door. How might I do this? I found one script, but I could not get it to work.

here is what I found

;Script




and the other part

Turtle Productions
15
Years of Service
User Offline
Joined: 22nd Jan 2009
Location: Finland
Posted: 4th Jan 2011 09:20 Edited at: 4th Jan 2011 09:21
If you ask me, I would go to globalvar. So I would add globalvar=1,incvar=1 to these targets' destroy script like this:

And I would put a dynamic box to somewhere on the level (impossible to destroy) and put this to it's main script.


Then put the door's name to the box's ifused box and it should work. Here player needs to kill more than 4 enemies to open it. You can change it by changing vargreater.

Thanks,
TP

Login to post a reply

Server time is: 2024-11-24 14:42:38
Your offset time is: 2024-11-24 14:42:38