|
Post by xenoblackinc on Jan 6, 2017 21:57:33 GMT
I've tried everything to make my enemies destroy after death instead of being on the ground when they die. I've tried to script them to be destroyed when in death state I keep getting compile errors. I'm not a programmer by any means I'd gladly pay someone to help me get my visions across. I think I'm going to break my keyboard.
|
|
|
Post by jgiroux on Jan 6, 2017 21:59:48 GMT
do you want them to be destroyed permanently or respawned elsewhere at a set interval?
im sure I can assist with this , that way you don't hurt your head on your keyboard.... we need all you game designers healthy!!
|
|
|
Post by xenoblackinc on Jan 6, 2017 22:34:16 GMT
finally got my ally to follow to a certain empty game object however I'd like for the ally to be able to change stats and follow me after they touch a trigger how can that be done?
|
|
|
Post by xenoblackinc on Jan 6, 2017 22:36:39 GMT
i'd like them to be destroyed because i wont be killing the xbox one's memory. maybe both would help if they respawn i'd have to link them to a empty game object right? then place it in the level and use trigger zones?
|
|
|
Post by Chronicman on Jan 6, 2017 22:47:08 GMT
to destroy an enemy the simplest way, Open up the vAIMotor and find the line 550 and add this Destroy(gameObject); to destroy an enemy after a certain time, Open up the vAIMotor and add this code to like 550 gameObject.AddComponent<vDestroyGameObject>(); gameObject.GetComponent<vDestroyGameObject>().delay = 3;
Save, Compile, Play
|
|
|
Post by xenoblackinc on Jan 6, 2017 23:42:23 GMT
vaimotor doesnt work they dont animate
|
|
|
Post by Chronicman on Jan 6, 2017 23:59:52 GMT
Whats it doing ? If you are using Ragdoll.cs you will need to comment out the DestroyComponents void. That might be removing the components that are added. Are you looking in the V AI Motor or the V AI Animator ?
|
|
|
Post by xenoblackinc on Jan 7, 2017 0:03:54 GMT
vaimotor non of my enemies do anything when i assign it to them. they are frozen.
|
|
|
Post by xenoblackinc on Jan 7, 2017 0:05:14 GMT
yea i'm using ragdoll but the script thats attached to my enemies is the v_ai controller script
|
|
|
Post by xenoblackinc on Jan 7, 2017 0:06:38 GMT
honestly, I'm in need of a programmer bad I'll pay cause it's frustrating
|
|
|
Post by Chronicman on Jan 7, 2017 0:07:13 GMT
What ??? lol you must be doing something wrong here.
|
|
|
Post by xenoblackinc on Jan 7, 2017 0:10:48 GMT
the script that makes my ai's from the plug in is V_AIcontroller there is no line 550 on that there is a V_aimotor tha i've seen but my enemies don't move at all when i use that.
|
|
|
Post by Chronicman on Jan 7, 2017 0:13:39 GMT
Try this one last time, its super easy.
Open up the script vRagdoll.cs, find the line 380 to 420 and comment them out by using // in front of every line. They will turn green you telling the compiler to ignore these lines. Open up the vAIMotor and add this code to like 550 gameObject.AddComponent<vDestroyGameObject>(); gameObject.GetComponent<vDestroyGameObject>().delay = 3;
Save, Compile, Play
|
|
|
Post by xenoblackinc on Jan 7, 2017 0:15:58 GMT
i removed the rag doll and the character is just sliding around on waypoints.
|
|
|
Post by xenoblackinc on Jan 7, 2017 0:16:14 GMT
i cant even damage my enemy now
|
|