Jump to content

Requesting


bbautista

Recommended Posts

Random Mob Templates

Group Mob Templates

Day Spawn or Night Spawn

A way on enter region it will display a name of the region you are entering on the screen

again... footsteps sounds on your players..

more attacks for mobs.. instead of the standard attack (hard to make bosses seem more real)

Link to comment
Share on other sites

  • 2 weeks later...

Sorry this is late. I never check the Feedback forum.

But I can help with #4 for now.

Hope this is helpful to someone.

 

1. Add a 3d object > Cube to your game.

2. Set the cube size to fit the town, or location of your needs.

3. Turn off the cube's mesh renderer

4. Make sure "is Trigger" is checked.

(My settings are in the image below)

 

size=350https://i.imgsafe.org/a2ad44f78a.png[/img]

 

5. Go to your "Resources" folder and Set the tag for "HumanMale" and "HumanFemale" to Player

6. Create a script using my code below and drag and drop it on the 3d object cube you made.

 

 

using UnityEngine;
using System.Collections;

//Make sure you change EnterAnnounce to the name of the C# Script you made
public class EnterAnnounce : MonoBehaviour {

public string enterMessage;
public string exitMessage;

void OnTriggerEnter(Collider other)
{
	//check if player walks in zone
	if (other.tag == "Player")
	{
		// Display message
		string[] args = new string[1];
		args [0] = enterMessage;
		AtavismEventSystem.DispatchEvent ("ERROR_MESSAGE", args);
	}
}

void OnTriggerExit(Collider other)
{
	//check if player walks in zone
	if (other.tag == "Player")
	{
		// Display message
		string[] args = new string[1];
		args [0] = exitMessage;
		AtavismEventSystem.DispatchEvent ("ERROR_MESSAGE", args);
	}
}
}

 

7. Set the Enter Message and Exit Message however you'd like.

 

That's it. It's not the best and i haven't figured out how to change font colors yet but it should do what your looking for.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recommended Cloud Solution


    ksweb.net

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.