Jump to content
Sign in to follow this  
ninc00wtop

Single player survival Scripts

Recommended Posts

Hello, I need help, I want scripts that allow me to add a hunger and thirst system to my single player scenarios.

And I need another for a waypoint trigger that lets you win the map when you reach a point that can only be reached by air vehicles.

Is it possible?

How can I script in food and water items, and repait kits for cars.

But for single player as I have a survival mod im working on.

Any help is appreciated thanks.

Share this post


Link to post
Share on other sites

I saw a video about a food and drink thing the other day but can't find the link now. I'd probably wait for that. :) Or just make your own. setVariable, getVariable and loops.

Share this post


Link to post
Share on other sites
I saw a video about a food and drink thing the other day but can't find the link now. I'd probably wait for that. :) Or just make your own. setVariable, getVariable and loops.

My scripting knowledge is limited, but from what I understand. I can create items that store information about the players current Hunger and Thirst meter?

What are loops used for?

And how would I go about creating a script that decays the value that these variables hold in relation to how long the player is playing?

And how would I create the food items? do I just create a script that adds a new menu command when over the items that when the player activates the menu command it increases the variable by X amount? How would I then script this so that when either of these variables reaches 0 the player is forced prone and cant stand, and when both reach 0 the player dies.

Would the script only track the individual players hunger and thirst levels? Could I possibly attach it to Actors such as police and such? Could the computer be told to look for these items too?

Any help is appreciated thanks.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×