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.

Dark Physics & Dark A.I. & Dark Dynamix / Ai player doesnt count as an entity

Author
Message
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 19th Oct 2008 14:34
Hi, the ai player entity doesnt count as an entity but i need it to work with the ai get entity in zone command.

Any help with what i should do?


http://bergice.blogspot.com/ << Please enter my blog and click ads
Demos,Examples,Tutorials,Portfolio
sindore
19
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 20th Oct 2008 00:43
bergice
post a bit of exarmple code so ever one can have a look

soul sucking devils, twisted body of the damed, slivering slim drips from every poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!
Bad Monkey
17
Years of Service
User Offline
Joined: 1st Jan 2007
Location:
Posted: 20th Oct 2008 00:51
AI get player in zone(zone id)

Would that command work?


Visit my website:
http://www.artistsareus.com
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 21st Oct 2008 19:05
Well, too much code for that but first i use



for my player and a bit later i use this



So i dont get what is wrong

The error says that the ai entity doesnt exist


http://bergice.blogspot.com/ << Please enter my blog and click ads
Demos,Examples,Tutorials,Portfolio
pdq
17
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 21st Oct 2008 22:40
What I would do is add an entity "dummy". Set the AI control flag to zero. Set the position of the entity to your player. Now when you want to check to see if your player is in the zone, just pass this entity dummy to the ai get entity in zone().

Hope that helps.
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 22nd Oct 2008 18:32
Yes, though about that but think i am gonna do it anyways.


http://bergice.blogspot.com/ << Please enter my blog and click ads
Demos,Examples,Tutorials,Portfolio

Login to post a reply

Server time is: 2024-05-15 06:29:28
Your offset time is: 2024-05-15 06:29:28