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 / Heltor's Bear Trap Triggering [Script Help]

Author
Message
Mat Warner
10
Years of Service
User Offline
Joined: 7th Aug 2013
Location: Behind You :3
Posted: 9th Aug 2013 23:15
Hello Everyone,
So my idea is to make a way to trigger this event with any entity, to avoid player being damaged.
I and somewhat new to scripting and I am not quite sure this would be possible but please get back to me.

The Bear Trap Script looks like this:
;Artificial Intelligence Script
;Header
desc = brt
;Triggers
; Initiate
:state=0:state=1,coloff
:state=1,anywithin=1:state=2
:state=2:incframe=0
:state=2,FRAMEWITHIN=0 30,FRAMEBEYOND=0 20,anywithin=0:plraddhealth=-100
:state=2,FRAMEWITHIN=0 80,FRAMEBEYOND=0 70,anywithin=0:plraddhealth=-100
;End of Script

-Mat

Current Project: Ominous
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 10th Aug 2013 02:11
Hi Mat Warner Welcome to the FPSC forums.
Is this the script that was with it?
First the "anywithin=1" is too low a number (100=1 segment)
Usually its around 40-60 (40-60% of one segment)
Here try this, just off the top of my head as I don't have this
script/entity.

See if it works. If you throw an entity at it, it should trigger
it. If the player is too close, health -100.
Mat Warner
10
Years of Service
User Offline
Joined: 7th Aug 2013
Location: Behind You :3
Posted: 10th Aug 2013 06:13
No luck on this one, but Thank you!
Ill keep trying my hand at it.

Also the reason behind it being set to =1 is because a bear trap is only triggered by the center.

-Mat

Current Project: Ominous

Login to post a reply

Server time is: 2024-04-20 11:43:53
Your offset time is: 2024-04-20 11:43:53