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 / Follow waypoint and cause damage

Author
Message
incense
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 3rd Aug 2009 06:28
I have been trying for some time to make an entity follow waypoints and cause damage when it hits the play. I do not want the entity to move toward he play, just follow the waypoints. I am trying to modify the follownorotate.fpi. I have the entity following the waypoints but it does not hurt the player when the play runs into it.

Here is the modifications I have made to the script.



I have found one other post that deals with this but is old and locked and does not have the info I need.

Is there someone that will post info that they know for sure will make this work?

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Aug 2009 07:06


HINT: You have three colons on this line.


The one and only,


incense
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 3rd Aug 2009 18:33 Edited at: 3rd Aug 2009 18:35
I changed the last colon to a comma and the player takes damage every time the entity hits a waypoint even if the player is far away from the entity.

I even tried this.



That didn't work either. the entity just passes through the player causing no damage. I have tried several variations and still not what I need.

Thanks for the response. Any other ideas?

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Aug 2009 07:17
That's becuase the state is never changed to 6, so your line for causing damage is never executed.

Next HINT:
"plrdistwithin" is not an action.


The one and only,


incense
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 4th Aug 2009 17:22
I don't understand. I used one of the melee scripts as a template. I used the command in the same context as the melee script. I am really not getting why this does not work. It seems that there is more than one thing wrong with it.

Thanks for the attempt but the hints are just to vague.

It is not the people trying to help, it is me. I have fought a learning disadvantage since I can remember. There is a lot of things I just don't get. I have to try twice as hard as the next person just to be average at things. I keep trying but this is something that gives me a lot of trouble. I will just go back to square one and start over again.

Thanks again.

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 4th Aug 2009 19:00
Try this
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Aug 2009 01:23
Good job, zeza

@incense:

Your initial script was fine and would have worked just fine if you had changed the second colon of your first line to a comma.


The one and only,


incense
19
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 5th Aug 2009 16:03
I was that close?

I thought that you meant that I had to go in an entirely different direction. I looked at the scripting tuts and they did not help in this case. I can't believe almost tried scripting from the ground up. That would have taken weeks longer and I may not have gotten it at all. Even using an existing script as a template did not help to make it work. It was as simple as a colon. OMG!!!

TY TY TY TY!!!

BTW, love your mod. The only thing I can use in it is the dual weapons, but it is very cool!

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Aug 2009 23:43
Well, the basic things to remember in scripting are:
1) ALWAYS have 2 colons on each lines. No more and no less.
2) Seperate conditions with commas. Seperate actions with commas.


The one and only,


Login to post a reply

Server time is: 2025-05-26 00:51:40
Your offset time is: 2025-05-26 00:51:40