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 / My script makes entities VANISH! [PLEASE HELP]

Author
Message
Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 27th Jan 2013 07:29
So i found this script that I DESPERATELY needed. But, when i apply the script to a character entity, they vanish. Like, invisible, or something. But they aren't there.

The script was origionaly from Corno_1



Why do they keep disappearing? This SHOULD work, if I'm not mistaken.

PLEASE HELP ME!

THANKS!

When the darkness falls...
... we arise
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 27th Jan 2013 08:14
@Siphon_Studios
This is the culprit:


Why do you want him to destroy himself? What's the point to this?
Destroying the character removes all traces of him.

-TZK

Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 27th Jan 2013 08:19
Ohhhhh but its timed for 15 seconds anyways correct? It should still be there even if 15 seconds isnt up.

I want it to stop searching for the character if the character gets out of his sight for 15 seconds.

So like, it takes 15 seconds for the "monster" to stop searching if you run out of his sight and hide.

When the darkness falls...
... we arise
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 27th Jan 2013 08:21
@Siphon_Studios
I can't do it right now, as I'm a little busy, but I'll try and make a script for you a little bit later. You may want to add another "etimerstart" somewhere to reset the timer, or at least make it so he doesn't destroy himself when he's not searching by adding another condition.

-TZK

Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 27th Jan 2013 08:23
@The Zombie Killer

Ok, I'll play around with some etimers and see what other conditions i can fill in.

Thanks!

When the darkness falls...
... we arise
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 27th Jan 2013 08:24
@Siphon_Studios
No problem, I should have a script for you soon.

-TZK

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 27th Jan 2013 11:25
Quote: "What's the point to this?"

I did not know, but it helps him so I not asked

@Siphon_Studios
You want to make a slender game, right?
This script is not what you need!! It destroy the enemy after 15 sec, like tzk said
I am not good at ai scripting, but maybe this helps you

The slender did not disappear with this script! He just follow again the waypoints

Hope this is what you need


Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 27th Jan 2013 19:03 Edited at: 27th Jan 2013 19:25
OHHHHHHH OK. Thanks @Corno_1. It was to have some creature stalk the hallways of part of the map.

**EDIT**

I was looking through the script and saw that the files you listed are as .ogg, mine that i have saved are .wav. Does this make a difference? Ill try changing the .ogg to .wav and see if it makes a difference. If not, ill change it back and see again.

**2ND EDIT**

I tried the script with both .wav and .ogg and still no audio plays. The script works fine, but the audio doesn't play.

When the darkness falls...
... we arise
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 27th Jan 2013 20:14
It makes no difference!
just put your file ending in.
here is a new try:

If this also not helps or do what you want, change this line

to this



Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 27th Jan 2013 22:40
@Corno_1 None of it worked and the command routs are all perfect...

When the darkness falls...
... we arise
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 28th Jan 2013 12:07
sry but the script work for me in 1.2 Beta12.
maybe look into this:
- right sound direction
- right sound format
- sound is not too quiet

Other things I can not do for you!


abdullh
12
Years of Service
User Offline
Joined: 30th Aug 2012
Location:
Posted: 28th Jan 2013 13:41
hi
about this script sorry for that i tested and i like to take it this script if you don't mind .....

i test this script and it is working with beta 12 ...
but there something in script ... i think if you don't mind it's no good

when the enemy chased you and you run away and hidden somewhere the enemy searching you... and after 15 seconds he go back to way point ...how about replace idea ( waypoint ) to (dissapear)and the player feel rest and the player continue playing and after 20 seconds for example or one minute the enemy appear front him or anyway in rooms and you run way like amnesia

if this idea it's easy to script then please i need it ....
but before i need it i want to take permission how will script it

thanks a lot
i hope you can do it
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 28th Jan 2013 14:50
Quote: "but there something in script ... i think if you don't mind it's no good "

Everybody want something different from a script so why I should mind

And of course you can have the permission, just decide if you want to give credit or not
And here is yours


It was not very hard so I create it

Hope this helps you

Corno_1


Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 29th Jan 2013 01:33
Ill see if it works for me too.

How would i change the files from a .wav to .ogg???? This is quite confusing to me... And it could be the reason the audio is not playing.

When the darkness falls...
... we arise
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 29th Jan 2013 12:55
Quote: "How would i change the files from a .wav to .ogg????"


Of course you can convert you wav file, but it is easier to change this line

to


Hope this is your fault


Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 30th Jan 2013 03:14
I hope it works too.

I will change all the .ogg to .wav and double check the audio routing (within the folders and script). Ill post weather or not it works. Ill make another thread sharing it (if its ok with you @Corno_1)

When the darkness falls...
... we arise
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 30th Jan 2013 13:37
It is ok for me
Just do not give it away as your script!!!


Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 31st Jan 2013 02:42
I know nothing about scripting, i couldnt pull it off as my own even if i tried. Hahahaha

Thanks

When the darkness falls...
... we arise
charlie mcdowell
12
Years of Service
User Offline
Joined: 22nd Aug 2012
Location:
Posted: 6th Feb 2013 23:00
I've been having troubles with music and sounds as well with triggers and various things. If I come up with something I'll post

charlie
Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 9th Feb 2013 05:18
I still haven't figured anything out. This script is one of the most difficult ive seen.

When the darkness falls...
... we arise

Login to post a reply

Server time is: 2024-11-23 16:51:28
Your offset time is: 2024-11-23 16:51:28