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 / Good script to agent games

Author
Message
Jesper
17
Years of Service
User Offline
Joined: 14th Oct 2007
Location: Hämeenlinna
Posted: 1st Jul 2008 15:10
Ok, i made some scripts that wasn't working, and one agent script, what didn't work. But this is almost working. Enemies first shoot me, when i pick up enemy uniform and go back, they didn't shoot me. And when i shoot one enemy, HE shoot back. I made variables, so ALL enemies should shoot me when i shoot one enemy.

Here is script to uniform pick up(i have uniform model):



Here is script to enemy Main AI:
Little Bill
16
Years of Service
User Offline
Joined: 18th Jun 2008
Location: UK
Posted: 1st Jul 2008 17:02
Wow. This is cool. Thanks for this!

ZbVld
16
Years of Service
User Offline
Joined: 27th Apr 2008
Location:
Posted: 1st Jul 2008 22:53
Wow!!!
Thanks man!
Jesper
17
Years of Service
User Offline
Joined: 14th Oct 2007
Location: Hämeenlinna
Posted: 2nd Jul 2008 11:57
It's not working very good, because only one enemy shoot you, not everybody. But it can be useful thing in somewhere. If you kill one guard, and other guards don't see it, then they don't shoot you...
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Jul 2008 17:37
...very nice, Jesper.

Greatly appreciated, no doubt...


puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 2nd Jul 2008 19:53
Great job, Jesper!

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Jul 2008 23:27
@Jesper:

One question.... kinda big and you may want to look into this.

What variable are you setting in those scripts? I see you checking and settings variables, but not once do you tell the script WHICH variable it should be checking or setting.

The script will work as is, if all of the checks and sets are using the same variable, but as soon as another script changes the active variable, your scripts are going to mess up.

You'll want to do something about that, mate.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Jesper
17
Years of Service
User Offline
Joined: 14th Oct 2007
Location: Hämeenlinna
Posted: 3rd Jul 2008 10:37
I tried to make some script what starts: :state=0:globalvar=3, and made to other script :state=0:globalvar=3, but it didn't work.

Login to post a reply

Server time is: 2024-11-24 10:49:02
Your offset time is: 2024-11-24 10:49:02