A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Assets and Asset Store' started by EduardasFunka, May 23, 2017.
Are you sure that your player has proper script for restarting the scene?
Was this reply intended for Toby31 mukki014?
I think yes . Sorry for the mistake .
Well hope he solved his problem.
thanks for the beta ,
just tested, ai system is great!!! very good job
is it possible to have tuto for custom action or a sample scene to understand it ;D
(like open door, climb ladder)
thanks for your great job .
@EduardasFunka i sent you email with invoice yesterday, can you please send me new beta version.
please let me know
do you plan having 1.7 to work on unity 2017. you said something about copying file manually to make it work, can you give costumer access to an archive for that file structure ? I know you can't have both on unity store, but i'm on 2017 and wish to update... I'm currently on 1.5 and will be upgrading to 1.6.2 (is it compatible with 2017?) 1.7 and new AI seems really badass, congradulation, I hope i can update
Hi, just a few questions
changing the reload animation in mechanim makes all the gun sounds for that type not play anymore (aside from shooting), how do i fix this?
and how do I add hitboxes/different hitboxes (i.e head hitbox with multiplier)?
Also not sure why, whenever someone dies (character or AI) they fall through the floor
I love third person cover shooter so far no problems. but one very small thing, can anyone tell me how to fix the player to face the direction I place it in? when I face the player in the desire direction, in play mode it turns facing the opposite direction. please how to fix thanks in advance.
Attach this script to the player character:
public class SetStartRotation : MonoBehaviour
void Awake ()
//Set the character's rotation to the rotation in the editor as opposed to the default rotation
gameObject.GetComponent<CharacterMotor>().SetBodyTarget(transform.position + transform.forward*1);
gameObject.GetComponent<CharacterMotor>().SetAimTarget(transform.position + transform.forward*1);
void Start ()
// Put the camera behind the character as opposed to the default position
GameObject.FindWithTag("MainCamera").GetComponent<ThirdPersonCamera>().Horizontal = transform.eulerAngles.y;
Thanks timinal this help!
How do you setup dual wielding weapons? Have checked dual wielding in character inventory, moved position on LeftHand under gun in right hand but cannot then rotate hand into position to match the gun? Also no effects for second gun firing. Has anybody gone through the process on how to do this?
Any Help would be greatly appreciated
Hey Eduardas I've read through the reference manual you made for your new AI system and it's very nicely done. I thought i'd offer some feedback based on random things that popped into my mind as I was reading through it.
When you present it it could be helpful to list some AAA or indie titles that your ai system can be used to emulate. This would help to give an easy to understand context in respect to its capabilities.
Is this ai designer compatible with other 3rd party systems and if so how would that work?
When developing your tutorials I wondered if you could consider elaborating on the thought process you use when thinking about designing ai for tpcs, for example could this be used to create formations? If so how might we approach that?
How could i use this system create an attack drone?
On the raycast section in the manual and on the first example there is some lorem ipsim text in place of the details of that particular function.
For the end id thought id sneak in a quick wish list of stuff.
Shoulder switch from right to left like division, spec ops the line ect (might have missed it)
A slide animation, slide general and slide to cover
A custom slot for single animations, perhaps in the inspector, for stuff like destiny 2 emotes or what ever.
And ammo and health pickup system.
I get you've got your own things but if you like any of these ideas id love to see them've
is there some tutorials how to use new AI system?
I think Ed has posted a draft of the manual for A.I system a few pages back. Don't think it's released yet. Let me know if I'm wrong though as would like to take a look at it myself
I think it's not realised yet though you may be able to get access to a beta version if you send him your invoice number.
@EduardasFunka - Can you direct me to the code in the new beta that fixes the issue where the character doesn’t face forward. I tried Diffing it from my code and I’m not seeing anything that immediately stands out as a fix. I have customized your scripts and do not want to overwrite my own but I want that one bug fixed.
Hey working on those.
@EduardasFunka about a month and a half and still no answer. I am still unsure how to get the laser functioning on mobile top down. I have looked and the issue seems to be there is no laser component attached to the pistol prefab. The Base gun script looks like it will not run adjustLaser() method if there is no laser script attached to the gun. I tried to attach the Laser Script but it gave really wierd results, so i went backed and looked at your Topdown(PC) scene and there is a Laser Child Object on the pistol,I created a prefab of that Laser and added it to my pistol in my scene.
The Basegun now effective calls adjust Laser, and registers hit colliders but still no visible Laser. During play mode i can see that the alpha on the Laser Script is forced to zero every frame, but no sure what to do to change that as there is a lot of things happening in the laser script concerning the alpha.
private void adjustLaser()
// Adjust the laser.
if (_laser != null)
var origin = Origin;
var direction = Direction;
var hit = Raycast(origin, direction, out isFriend, false);
if (hit.collider == null)
_laser.Setup(origin, origin + direction * Distance);
//Update from Laser Script with Alpha calls.
private void Update()
if (Alpha < _laserIntensity)
_laserIntensity -= Time.deltaTime * 8;
_laserIntensity = Mathf.Clamp(_laserIntensity, Alpha, 1);
_laserIntensity += Time.deltaTime * 3;
_laserIntensity = Mathf.Clamp(_laserIntensity, 0, Alpha);
if (_renderer.material != null)
_renderer.enabled = Alpha > float.Epsilon;
var color = _renderer.material.color;
color.a = _laserIntensity;
_renderer.material.color = color;
_renderer.enabled = Alpha > 0.5f;
if (_generatedLength == Length)
_generatedLength = Length;
var length = transform.InverseTransformPoint(transform.position + transform.forward * Length).magnitude;
const int detail = 32;
const int vertexCount = detail * 2;
const int indexCount = (detail - 1) * 6;
var vertices = new Vector3[vertexCount];
var colors = new Color[vertexCount];
var uv = new Vector2[vertexCount];
var triangles = new int[indexCount];
var v = Length / MaxLength;
for (int i = 0; i < detail; i++)
var p = i / (float)(detail - 1);
var a = Mathf.PI * 2 * p;
var u = Mathf.Cos(a) * 0.5f + 0.5f;
var x = Mathf.Cos(a);
var y = Mathf.Sin(a);
var p1 = new Vector3(x, y, 0);
var p2 = new Vector3(x, y, length);
vertices[i] = p1;
vertices[i + detail] = p2;
uv[i] = new Vector2(u, 0);
uv[i + detail] = new Vector2(u, v);
var index = 0;
for (int i = 0; i < detail - 1; i++)
triangles[index++] = i;
triangles[index++] = i + 1;
triangles[index++] = detail + i;
triangles[index++] = i + 1;
triangles[index++] = detail + i + 1;
triangles[index++] = detail + i;
_mesh.vertices = vertices;
_mesh.colors = colors;
_mesh.uv = uv;
_mesh.triangles = triangles;
ANY help would be appreciated as I need this to work so I can try and implement a critical hit system based on how long the laser is hitting the enemy........
i have a problem . i spawn player at some point .. but is change the rotation ... whatever i put any rotation .. is spawn son same point
i have a problem . i spawn player at some point .. but is change the rotation ... whatever i put any rotation .. it spawn on same point as previous spawning before changing rotation
When will the new update come out?
thanks in advance
when all promo stuff is done, tutorials and documentation. If you want beta send an invoice.
@EduardasFunka Response to my question as well would be appreciated.
Is asset dead?
What makes you think the asset is dead?
He's been giving Betas for the next release to ppl that ask, He also just finished writing a rather massive overhaul to the AI and now has to document a huge amount of changes.
I've just bought this asset. It looks to be a very solid pack indeed.
I'm trying to follow the 18 part tutorial. I get the guns etc to work. But, when i try to walk in the BoD terrain (in 9. Setup Main Scene, using Unity 2018.2.8f) the character sometimes makes the terrain 'jitter' (character and camer stady but terrain jitters alittle) and sometimes the character 'slides' along the terrain and start to wave its arms. ( I know that it would be better with a image but the 'problems' cant be seen in a still image so..)
Sorry if this question is already answered or me just being blind for the solution! Hopefully this has a simple solution.
PS I have experienced the same behavior with for example the Post Apo environment from Manufactura K4
@EduardasFunka , once again, any answer on this would be appreciated........
@Everyone else, I am trying to work through my own solution as it appears no answer will be giving but I ran into a issue. I'm curious if anyone else noticed this and/or have a solution.
when crouching and aiming at enemy, the raycast hit from base gun returns back null for collider and transform, actually it registers the collider for a frame, then returns null every frame after even though you are still aiming at enemy. The bullet still strikes enemy and does damage but raycast hit still returns null. even FindCurrentAimedHealthTarget() returns null if you are crouching. My theory is it has something to do with the array set up on the ray cast method, it gathers all hits and returns the closest but from crouching the angle may cause issues....
my script needs to get the fighter brain from ray cast hit in order to check if idle. so far the script works perfectly when standing and aiming, but will not work when crouching,
Edit 1: 2019.7.9
Hmm, in BoD it seems that the Terrain collider is par of the issue. I'm not sure why. But the character moves on all the other parts that have a collider.
Edit 2: 2019.7.09 Later the same day that will say
Started to read the code and saw that the Physics.RaycastNonAlloc used the Layer.Geometry value (which is same as Default). Then a check in (at least my) imported BoD _Environment/Terrain/Terrain_ForestSample:s Layer was unset! When changed to Default the problem was solved!
Hi EduardasFunka how to make the AI attack game object like a cube for example?? and how to make the AI receive damage on collision for example I want the AI dead when a big rock hit it??
Put a trigger on the rock, make a script on the rock that has on trigger enter, the other ref from on trigger will be the enemy gameobject. Do a get component for the Character health script and call deal damage.
Hopefully that explains, I'm not home or I would type up the script to help you out but that's pretty simple.
I've just bought this asset and learn unity. now i stuck on picture.
how to remove or disable black circle on this picture.
From the Scene View select Gizmos drag the slider for 3D Icons to the left.
i wrote here, never had any reply in the last 5 month, i wrote on both of @EduardasFunka email, no answer... where do i need to go or write to get support and answer ? it's annoying, i've been here since the beginning, had invest thousand of dollar at the beginning to make thing going and working but today im not even sure i can upgrade to latest version on store or upcoming version even less...
what's the best way to communicate and can you send me the beta to the new asset so I can check compatbility
click on gizmos in scene view and drag the slider should get rid of the circle
From what I understand, new version is ready but waiting for documentation to be completed ?
Hi @EduardasFunka , I hope you are doing well , any news about the update ?(not the beta ) ...
All good. Took some holiday break
Yes also convert scenes to 2017.4
Sorry if i did not replay can you send me again?
Hope you got a nice rest!
Hello, when does the asset get updated?!? Where / How can I get the latest beta?
when will you add save/Load system?
Hi Lay84 ..
I hope you are in Home to write the script that deal the damage
public class Boulder : MonoBehaviour
//Damage amount to be applied after trigger
[SerializeField] private float damage;
private void OnTriggerEnter(Collider other)
//Get Character health component from AI then apply damage.
var _enemyHealth = other.GetComponent<CharacterHealth>();
Hi Lay84 ..
Thank u for replying to My Question i have already did it by this script :
public class GetCom : MonoBehaviour
public float Damage = 10;
private Vector3 normal;
public float DamageResponseWaitTime = 0;
private HitType type;
// Start is called before the first frame update
// Update is called once per frame
private void OnTriggerEnter(Collider other)
if (other.gameObject.GetComponent<CharacterHealth>() != null)
var hit = new Hit(other.ClosestPointOnBounds(transform.position), normal, Damage, Character.gameObject, other.gameObject, type, DamageResponseWaitTime);
other.SendMessage("OnHit", hit, SendMessageOptions.DontRequireReceiver);
i know its not good script because i have no programming knowledge but its working i will try your Script its better than mine ..
Now i need your help with 1st Question ((how to make the AI attack game object ''NOT THE PLAYER'' Like a car or Helicopter or just a simple cube for example??)) I tried to add agent script but it require character Motor script and that what i don't want i hope to help with that ..
thank u again for replying
Saving an dLoading are pretty much game specific... your request doesn't make much sens. What do you want to save, position, health only, level progress, time, score, etc... load/save module already exist on the store and unity offer pretty good tutorial on that too.
I personally am unsure on how you would do that.
In previous versions 1.3 I think only Actor script needed to make AI attack any gameobject but in recent versions its not possible to do that .. May be we should ask @EduardasFunka ??!!
i think anything with CharacterHealth attached to it will be attacked.