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 / Quick Question

Author
Message
eXone 42zero
18
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 3rd Nov 2008 02:00
does the following script call an entity's "shoot" script?
or does it simply use the entity's weapon
i'm stumped

:state=3:settargetname=enemy,rotatetotarget,resethead
:state=3,ifweapon=1:useweapon,rundecal=6
:state=3,ifweapon=0:state=4,setframe=6

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Nov 2008 04:16
Quote: "does the following script call an entity's "shoot" script?
or does it simply use the entity's weapon
i'm stumped

:state=3:settargetname=enemy,rotatetotarget,resethead
:state=3,ifweapon=1:useweapon,rundecal=6
:state=3,ifweapon=0:state=4,setframe=6
"


That dose not call up the shoot script. it is more of a piece of the shoot script that can be put into the main script.

To have the shoot script called up, you need "shootplr"
V7 of the ally script demonstrates this effect along with multi-targeting.


eXone 42zero
18
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 3rd Nov 2008 04:49
i was lookin at the ally script you're talkin about and i thought it was just a thing giving the player control of his/her allies
am i wrong?

and shootplr isn't relevant in an ally script

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander
eXone 42zero
18
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 3rd Nov 2008 04:50
ah i feel stupid...
so wait could i call "shootplr" and just put a "shootenemy" script in the shoot area in the editor?

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 3rd Nov 2008 05:03 Edited at: 3rd Nov 2008 05:06
It has to be "shootplr". there is no "shootenemy"

The ally script was designed to give player control to the ally, but I also included independent control such as, if he is shot at he will automatically return fire. The new "ally scripts" V7 not V6 (V6 contains a single script V7 has two ally scripts, main and shoot) Has a feature where you can just have him roam freely until you need him.


eXone 42zero
18
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 3rd Nov 2008 07:12
so there's like... no way to have him automatically find an enemy target and shoot him?
or even fire his weapon blindly in that direction for theatrical effect
that would be good since it would force the player to actually do something instead of letting his teammates carry him through the whole game

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Nov 2008 11:20
Quote: "so wait could i call "shootplr" and just put a "shootenemy" script in the shoot area in the editor?"


I get what you're saying. Yes, you can and should do that.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
eXone 42zero
18
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 3rd Nov 2008 16:04
ok that's what i was thinking
so in the editor window, when i right-click on my ally entity, i get a properties pane
this pane contains a field entitled "Shoot" which normally contains the entity's behavioral script for shooting the player

lemme see if i got this right...

"shootplr" will call this script, whatever it is
and i can have the entity shoot something other than the player if i write my own script to do so, and put it in this field
then call "shootplr" from the entity's main script

yes?

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Nov 2008 07:31
Correct.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
eXone 42zero
18
Years of Service
User Offline
Joined: 31st Oct 2006
Location: 7!9
Posted: 4th Nov 2008 09:01
ah i'm smarter than i thought i was
thanks again
i'll keep you posted

"There's more to life than being really, really, ridiculously good looking." - Derek Zoolander

Login to post a reply

Server time is: 2024-11-24 13:36:35
Your offset time is: 2024-11-24 13:36:35