This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Smart Scripts on Gameobjects  (Read 663 times)

Piccolodmq

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 200
    • View Profile
Smart Scripts on Gameobjects
« on: April 14, 2017, 02:31:56 am »
I have made many smart scripts npcs in the past, so I am not stranger to the systems.   But I have never been able to mae smart scripts on gameobjects work.
I guess they all work with the SmartGameObjectAI, instead of the SmartAI that npcs have.

Any pointers?  for example lets say that. I want gobject= 1867290  to spawn when looted, touched or when I am nearby, this NPC. =39926

I have tried copying gamebojects like elizas tomb that spawn Eliza so you can fight her, with no luck.  Any help would be apreciated.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: Smart Scripts on Gameobjects
« Reply #1 on: April 14, 2017, 10:32:47 am »
You have to use SmartGameObjectAI instead of SmartAI in gameobject_template, and source_type=1 in smart_scripts. Thats all. The rest is just up to correct choice of events and actions.
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz