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 / Help with jamming script

Author
Message
bojandurmic
12
Years of Service
User Offline
Joined: 28th Dec 2011
Location: My home
Posted: 27th Apr 2013 16:16
Hi all , today I started on making my own scripts . As I expected , the first attempt was big fail lol.

I used TZK's scripting tutorial and I tried to make the script which jams player weapon (without any key to press)

;Artificial Intelligence Script

;Header

desc = Jamming weapons

;Triggers

:plrwithinzone=1:plraction=11

;End of Script

thats the "script" . I don't know what to do lol. Please help
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 27th Apr 2013 17:07 Edited at: 27th Apr 2013 17:09
Try this:



-TZK

bojandurmic
12
Years of Service
User Offline
Joined: 28th Dec 2011
Location: My home
Posted: 28th Apr 2013 19:43
Thanks , TZK. Just to ask you , what did I do wrong ?
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 29th Apr 2013 09:27
@bojandurmic
You didn't really do too much wrong, it's just that the plraction=11 command was repeated over and over again when the player is in the zone. So it would be trying to jam the weapon over and over and never completing the animation that comes along with the jam because it kept re-jamming it when it was already jammed.

What I did is make sure that the command is only run once, and then can be run again once the play exits the zone.

-TZK

bojandurmic
12
Years of Service
User Offline
Joined: 28th Dec 2011
Location: My home
Posted: 29th Apr 2013 11:34
Thank you so much

Login to post a reply

Server time is: 2024-05-03 15:39:11
Your offset time is: 2024-05-03 15:39:11