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 / a couple of problems scripting an ally..

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 26th May 2009 13:39
hi everyone,
am tryin to make a very simple ally script and am facing a couple of problems..

here's what I have so far


- is there any way to make the ally shoot enemies at well when the enemy is in range without having to press any buttons?
- when the ally kills the player it keeps on firing, how to stop that?
-at last, when the enemy moves the ally keeps shooting the old direction and I have to give the attack command again for it to look in the new direction, I guess this will be solved with problem 2

TY..


~Level my Dragon~[/url]
Best Wishes..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th May 2009 19:59
Quote: "when the enemy moves the ally keeps shooting the old direction and I have to give the attack command again for it to look in the new direction"


When you set an entity's target, it saves that target's position information for use with things like "rotatetotarget". To keep this position up-to-date you would need to continually set the target.


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 26th May 2009 20:13
well how to do that?
is there a way for loops in FPI scripting?

and regarding stopping fire on killing the entity, any ideas there?
TY


~Level my Dragon~[/url]
Best Wishes..
Bugsy
16
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 28th May 2009 23:10
scancodekeypressed=whatever:freeze,state=0?

I dunno automatic stop.
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 29th May 2009 00:07
that doesn't solve it, I still need to press a key


~Level my Dragon~[/url]
Best Wishes..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th May 2009 21:25
"settargetname=plrenemy,settarget" Why are you using those in line? Simply using settargetname will set the target, so there's no need to settarget again.


The one and only,


Login to post a reply

Server time is: 2024-11-25 01:48:09
Your offset time is: 2024-11-25 01:48:09