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 Product Chat / How to sense when something exploded

Author
Message
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 14th Jul 2010 07:10
how do i sense when something explodes (perferebly no script.)

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
Bugsy
17
Years of Service
User Offline
Joined: 24th Nov 2008
Location: another place in time
Posted: 14th Jul 2010 07:51
add it in the object's script itself. things explode when they run out of health.

imageflock.com/img/1272671763.jpg[/img]
skype = isaacpreston. I want to talk to YOU
Metal Devil123
17
Years of Service
User Offline
Joined: 13th Jul 2008
Location: Suomi, Finland
Posted: 14th Jul 2010 15:55
Right click the entity and there is Exploadable: Yes/No, and you know what that means. And if you want it to explode, when you shoot at it, put it's life to something, like 25 or so. If you don't want it to break, then life should be put to 0. And if you want it to explode in a certain amount of time, then there should be something like: "Spawn Life:" Add a number of how many seconds you want it to live, like; Spawn Life=3, means, it will exlpode in 3 seconds. Hope this helps! And using trigger zones and this method, can make your games even cooler!

The Next
Web Engineer
18
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 14th Jul 2010 17:29
Do you want the AI to sense the explosion?


Windows 7 Pro, Intel Core 2 Duo 2.8Ghz, 4GB DDR3, Dual nvidia SLI 9800GT 1GB, 1.5TB Hard disk
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 14th Jul 2010 18:46
no that would be cool but all i want to do is sense when some thing explodes so a alarm and lights will go off. Thanks every one so far though, i learn a little.

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
Flatlander
FPSC Tool Maker
19
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 14th Jul 2010 22:24
Quote: "no that would be cool but all i want to do is sense when some thing explodes so a alarm and lights will go off"


When something explodes the destroy script is executed. You will need to customize a destroy script to indicate that a particular object has exploded. You will probably use variables or an activateifused command.

The Master Dinasty
17
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 14th Jul 2010 23:00
Well this script wouldn't be hard at all, if you read some of the guides around here about scripting you would find that this would be really easy, and very cool looking. Or maybe you can ask very politely in a request thread in the script section? Imagine how cool it would be if the alarm went off as soon as the barrel of oil (or whatever exploded) bad ass music triggers, and followed by fearsome guards? Well scripting IS easy and adds a very very fun twist to your (and everyone else's) games. Scripting is a vital part for ANY project with a game engine to succeed and be minimalistic fun.

If you you cant get anyone to help you, just try yourself I promise if you past a half bad example of your newbie script (no offense) YOU will receive help by the community!

-Massap2

We are the magnificent Masters, builders of pyramids.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 14th Jul 2010 23:06
ok thanks ill look around if anyone fells like writing one please do. If not ill proubly make my own and put it in the mega sifi pack thanks all!

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 16th Jul 2010 09:39
K I went ahead and did it look in the scripts board for doorbreach (my first)

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.

Login to post a reply

Server time is: 2026-07-05 17:13:40
Your offset time is: 2026-07-05 17:13:40