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 / Proximity Mine

Author
Message
Black Bullet
17
Years of Service
User Offline
Joined: 6th Jan 2007
Location:
Posted: 28th Jan 2007 20:13
I made this script for a bomb that woudl explode if players got too close, it would be great in dark areas to keep players on the ball, but the script isnt workingm any ideas?

;Artificial Intelligence Script

;Header

desc Proximity Mine By CE Black Bullet Games

;Triggers

:state=0:none,state=1
:state=1:plrdistwithin=1,state=2
:state=2:destroy


;End of Script

Black-Bullet
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 28th Jan 2007 22:22 Edited at: 28th Jan 2007 22:24
I'm no expert, but your desc sould have an = after it.

desc = Proximity Mine By CE Black Bullet Games

something like that, I think.


Be sure to check the forum for special offers, and free stuff!
Black Bullet
17
Years of Service
User Offline
Joined: 6th Jan 2007
Location:
Posted: 28th Jan 2007 22:32
k tnx, the creator said the script was valid, i just think i;ve done something different that wat i wnat it to do cos the entitiy just dosnt show up in game when this scripts on it

Black-Bullet
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 28th Jan 2007 22:45
Quote: ":state=0:none,state=1
:state=1:plrdistwithin=1,state=2
:state=2:destroy"


Line 1: none is unecessary.
Line 2: plrdistwithin is a condition, not an action. =1 will never happen. The player cannot get that close. Try a number of 40 or more.
Line 3: destroy means disappear, not explode. In order to get something to explode, it will have to receive a blow greater that it's own strength.

So:

:state=0:state=1
:state=1,plrdistwithin=40:state=2
:state=2:destroy

will case the bomb to disappear when the player gets within 40 units of it.

Best.

I'm sorry, my answers are limited. You must ask the right question.

Black Bullet
17
Years of Service
User Offline
Joined: 6th Jan 2007
Location:
Posted: 28th Jan 2007 22:55
thanks best

Black-Bullet
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 30th Jan 2007 17:58
to get it to actually explode make a small, invisble entity; with low health, that can explode. Place it over the object you want to explode, this object must have a strength of about 1. BOTH objects must have explode on.

then just use a trigger zone or plrdistwithin script to spawn the small object and it will just look like the big one explodes.

hope that made sense.

Tyrano

Woot Kingdom hearts owns!

Login to post a reply

Server time is: 2024-11-23 11:07:25
Your offset time is: 2024-11-23 11:07:25