[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Skyline Forums • View topic - onSensorContact Issues
From NPC combat to path following and all AI related tasks.

onSensorContact Issues

onSensorContact Issues

Postby Shando » 02 Jan 2015, 23:39

User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: onSensorContact Issues

Postby Shando » 03 Jan 2015, 03:17

User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: onSensorContact Issues

Postby SolarPortal » 03 Jan 2015, 12:08

Cool that your making changes to the AI.
I am sure StarFire can answer you more on the sensor, but I can answer the last .ark part.

The Orc is stored in the .ark package, but there is no script in the ark, just a mesh, Skeleton, materials and textures.
The script is apart of the preset stored in the preset folder.

You can change the script and just save another preset file of the ork.
Simply open the asset manager, goto a folder anywhere, then drag from the scene entity list to the asset manager view.
This will create a preset of that entity.
There is also a button in the asset manager toolbar for preset import.
Or right click in the scene and choose save as preset.

Then drag or spawn your version.

The current ork preset will be in the "Presets/Skyline game system/fps kit" or something around that structure.
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: onSensorContact Issues

Postby StarFire » 03 Jan 2015, 20:07

Just had a play with the sensor and all looks ok.

The sensor detects and processes events for the closest object to the sensor center. So if we had only one object enter the sensor, ensuring that the ground is not detected, it all works as you would expect. Now if 2 objects enter the detection range only the closest object is processed, that means any other objects in the sphere will not send an exit event, only the processed object will send the events. This can be confusing :? but most checks can be done via script as you have done ;)

The sensor is like every other feature an ongoing development, so far its been great for most circumstances in AI detection, proximity detection and very fast triggers in the vehicle AI. Most eventualities have been fine with its current status and with careful use of object groups and lua pretty much can be achieved. If you find you can not overcome a situation, please let me know and if possible we can upgrade the sensor for you. :D
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to AI

Who is online

Users browsing this forum: No registered users and 8 guests

cron