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 / Start a decal via entity AI Main script?

Author
Message
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 7th Oct 2005 06:20
Hi,
Is it possible to start (activate?) a decal via an entity AI Main script?

I have animated an entity to walk a path, and at the end of the path (waypointstate=5), I would like to have some steam decals start.

Is this possible to do in script?

Thanks in advance,
X

Code so clean you could eat off it.
Habatar
20
Years of Service
User Offline
Joined: 9th Aug 2004
Location: Madrid (Spain)
Posted: 7th Oct 2005 08:31 Edited at: 7th Oct 2005 08:34
Try to Active the decal entity when waypointstate=5
Set the decalentity name at activate_ifused of the character,
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 8th Oct 2005 07:51
Gracias Habatar.

I cannot find the IfUsed property for my entity. Do you know if IsUsed is available for Enemy Entities? I also tried adding the following lines to the entity fpe file:

;aiused
usekey =
ifused =
ifusednear =

I then deleted the bin & dbo files, restarted FPSC, re-selected the entity from the library, and added to the level, checked the properties, but there still is no IfUsed property.

I cannot figure this out. Do you know if I doing something wrong?

Code so clean you could eat off it.
Habatar
20
Years of Service
User Offline
Joined: 9th Aug 2004
Location: Madrid (Spain)
Posted: 8th Oct 2005 10:49
True.

I forgot that characters not have a IfUsed propety.

I think to made a tigger zone that activate a IfUsed if anything is in the zone.

The tigger zone script is:
anyinzoneactivateifused.fpi


You can put this trigger zone at the end of the waypoint path.

I will try to do list. I add to my TO DO List.
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 10th Oct 2005 18:25
Gracias Habatar for the suggestions & code. I worked with it for a couple of days and got it working. Here are a couple of notes if anyone wants to do something similar:

"anywithinzone" is not a valid condition. I then tried using "entitywithinzone" for the trigger zone, but it does not work. It is always true, even if I put the trigger zone is an empty part of the map. Maybe someone can confirm "entitywithinzone" does not work properly.

I then tried "anywithin", but it is valid for an entity only (not a trigger zone). I deleted the zone and created an entity at the end of the waypoint path and it is now working.

Thanks again.
X

Code so clean you could eat off it.
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 10th Oct 2005 23:57
anywithinzone is valid

anykeywithinzone is something, I haven't quite figured that out yet though

and
ENTITYWITHINZONE was never made.

"ye oft de adopte early shalt move mountains, and be gods among men"

He who knows everything knows nothing at all.
Habatar
20
Years of Service
User Offline
Joined: 9th Aug 2004
Location: Madrid (Spain)
Posted: 11th Oct 2005 16:35
Yes, anywithinzone is valid.
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 13th Oct 2005 05:04
I apologize. anywithinzone is on page 87 of the manual. My eyes must have been buggin out.

entitywithinzone is on page 86. I tried that command every which way until I was ready to through my laptop out the window. Good to know that is was not implemented. Are you aware of any other commands that were never made?

Thanks!

Code so clean you could eat off it.

Login to post a reply

Server time is: 2024-11-21 16:46:58
Your offset time is: 2024-11-21 16:46:58