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 / Shoot targets in order

Author
Message
ace93
15
Years of Service
User Offline
Joined: 22nd Feb 2009
Location:
Posted: 21st Aug 2009 18:38
I want to know if there is a script that makes the player have to shoot targets in order of 1,2,3,4...
if he shoots like 5,1..he fails the level
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 21st Aug 2009 20:23
Not that I know of. but it is possible I guess, if you use the activateifused action

Hope This Helps
ace93
15
Years of Service
User Offline
Joined: 22nd Feb 2009
Location:
Posted: 21st Aug 2009 20:58
you mean I shoot the first spawn the second etc etc?
but what if I want them all to be standing there at the same time to then shoot them?
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 22nd Aug 2009 02:14 Edited at: 22nd Aug 2009 02:15
ok here's how it's done

u'll need to have different destroy scripts for all the 5 of them and one script to declare a global variable (can be used in the first target)..

- assign the value of (0) to a global variable of ur choice, in the destroy script for the first target just add (1) to the variable

- on the second destroy script, add also (1) to the global variable and jump to the next state..
if the global variable is less than 2 then game over..

- on the third destroy script, add (1) to the global variable and jump to the next state..
if the global variable is less than 3 then game over..

and so on.. that way say if u destroy the third target first, a value of one will be added to the global variable making its value equals to one, one is less than three so game over..

hope my explaination was ok

ace93
15
Years of Service
User Offline
Joined: 22nd Feb 2009
Location:
Posted: 22nd Aug 2009 04:52
it was gd
uhmm now if I make a russian PPSH 1941 (ussr) will someone get me the scripts done?
4125
16
Years of Service
User Offline
Joined: 3rd Feb 2008
Location: Bronx, New York
Posted: 22nd Aug 2009 09:18
i dont think u need to do all of that....theres free targets at da GCS and this is wat i did....

I Used da 1st target and set it to have an objective....then i set da destroyactiveifused script to active da next target and set it as da 2nd objective....i contiune til im done...dat sould work...

Good Luck Tho...


Angel....

Computer Specs: Intel Core 2 Duo E7400 2.80GHz @ 1066Mhz FSB 3MB Cache, Dual Channel 8192MB DDR2 PC6400 800MHz RAM, XFX Nvidia Geforce 9800 GTX+ 512MB, MSI P7N SLI-FI Motherboard - nForce 750i SLI
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 22nd Aug 2009 11:46
Quote: "I Used da 1st target and set it to have an objective....then i set da destroyactiveifused script to active da next target and set it as da 2nd objective....i contiune til im done...dat sould work..."

he just said he wanted all of them to be visible at the same time

Quote: "uhmm now if I make a russian PPSH 1941 (ussr) will someone get me the scripts done?"

it's not that hard.. if you have no scripting experience at all then u probably should, start with the official community guide..

ace93
15
Years of Service
User Offline
Joined: 22nd Feb 2009
Location:
Posted: 22nd Aug 2009 18:31 Edited at: 22nd Aug 2009 18:49
"he just said he wanted all of them to be visible at the same time"
but maybe it works you see if I had a way to put something that looked just like the targets in the same spot as the targets it'd work!

Edit: Speaking of which see my MG-34 thread I am willing to give it away for a script.

@4125
I dont have that script! OO
can I have it from someone?
4125
16
Years of Service
User Offline
Joined: 3rd Feb 2008
Location: Bronx, New York
Posted: 22nd Aug 2009 23:17 Edited at: 22nd Aug 2009 23:18
It Came From V107 I Think..Check Your Scriptbankdestroy...It Should Be There... And You Can Have Them All Visable Just Set Them With The Objectives...In Order While Visable Then Idk Bout That...

Computer Specs: Intel Core 2 Duo E7400 2.80GHz @ 1066Mhz FSB 3MB Cache, Dual Channel 8192MB DDR2 PC6400 800MHz RAM, XFX Nvidia Geforce 9800 GTX+ 512MB, MSI P7N SLI-FI Motherboard - nForce 750i SLI
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 22nd Aug 2009 23:19
Quote: "but maybe it works you see if I had a way to put something that looked just like the targets in the same spot as the targets it'd work!"

yes but that way only the target u r supposed to shoot will appear, so there's no way to lose..

and no scripting needed for that, the only script ur gonna use is destroy and activate located in
Files/Scriptbank/destroy/destroyandactivate.fpi
just assign it to the destroy script for each target, set spawn at start to (no) for targets 2,3 and 4.. and change the (ifused) property of each to the next target name..

ace93
15
Years of Service
User Offline
Joined: 22nd Feb 2009
Location:
Posted: 23rd Aug 2009 22:54 Edited at: 23rd Aug 2009 23:15
Edit: It did work!
just..I thought it ddint nvm that.

The reason why I thought it didnt was because I didnt saw targets 2,..appearing since they went straight throught the floor after spawining. Unlike target 1 ( same models). Why is this erradic behaviour with spawned targets?

Login to post a reply

Server time is: 2024-11-25 06:44:44
Your offset time is: 2024-11-25 06:44:44