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 / entities shooting at a certain object?

Author
Message
Adam243
16
Years of Service
User Offline
Joined: 3rd Jan 2008
Location: indonesia
Posted: 12th May 2008 17:27
how do you make an entitiy shoot at a certain object besides the player. I didn't learn how to use the script writing or editing but if someone could just tell me where in the scirpt is the targetting system of the entity, feel to tell me or better yet show me. Give me an example, with an entity shooting at a barrel (if this isn't so hard feel free to do it or you can just tell me where is it) because this will be great for cutscene's im going to make). Thanks in advance( I might not be replying in a few days but please do write one up for me if you can)

noob in fpsc
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 12th May 2008 23:43
Well, since there is no script that does this, I'm going to lay it out for you in plain, easy to understand words.

FPSC's targetting system sucks.

There, I said it. It sucks.

In order to target an entity, you either need to know the name of the entity that will be targetted, or you'll need to use a condition that will set up FPSC with a "potential target". There aren't many of those and most of them will ONLY set the player as the potential target.

To set the target if you know the entity's name, you would use the "settargetname" action. That will give the entity a specific target. Once you've set the target you can them use the other target commands to make your entity rotate to it and shoot it.


The one and only,


Adam243
16
Years of Service
User Offline
Joined: 3rd Jan 2008
Location: indonesia
Posted: 13th May 2008 17:06
hey thanks, So this isn't possible for the entitiy to shoot at something else except the pottential target which is the player.I could try the settarget name bit you have sugested. I think I might try that out see if i can do it. Is there any chance a program that can translate fpi scripts or can someone teach me how?

But nonetheless thanks anyway for pointing out the settarget bit

noob in fpsc
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 14th May 2008 02:00
Teaching FPI is a hard business. Most people learn from trial and error, and from decyphering existing scripts to figure out how they work. I have also written some tutorials on the matter, starting with "A Complete Newb's Guide to Scripting" which is posted somewhere on this board. It's also been made a part of Nicky Dude's FPSC Guide. You can find that in a sticky on the FPSC Chat board. It's quite worth the download and has a slew of knowledge on scripting within it as well as other tips and secrets to FPSC.


The one and only,


Adam243
16
Years of Service
User Offline
Joined: 3rd Jan 2008
Location: indonesia
Posted: 14th May 2008 11:18
ok thx

noob in fpsc
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th May 2008 14:37
one program called X-Plain translates what FPI scripts into english
here's the link directly to the site

[href]null[/href]http://www.lanningsoftware.com/products.html

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
wayne davis rocks
16
Years of Service
User Offline
Joined: 10th May 2008
Location: US Liberty In
Posted: 20th May 2008 16:00
dar 13

That didnt work out so well page cant be displayed did though..lol

Wayne Davis Band

Login to post a reply

Server time is: 2024-11-24 08:19:09
Your offset time is: 2024-11-24 08:19:09