Scripts / moving rigid body

Author
Message
rezashahsiah
9
Years of Service
User Offline
Joined: 11th Jul 2015
Location:
Posted: 11th Jul 2015 08:56
Hi,
I am new in forum and I am glad.
I made a character model without rigging and animating then I imported it into GameGuru same a character and it appears in editor. I want it moves like rigid body motion and I want it would be a enemy, i mean it follow me, run, attack me, and etc. I don't know how to write a LUA code for it. please help me.
If I make an animated model what are animation order (idle, walk, and ...).
Please help me step by step.
thanks guys
rezashahsiah
PM
Errant AI
Forum Support
18
Years of Service
User Offline
Joined: 24th Aug 2006
Location: [REDACTED]
Posted: 11th Jul 2015 10:40
In the entity .FPE, add

ischaracter = 1

This will allow you to assign enemy AI to it.

Beyond that, you will need to do some custom scripting to get the behavior how you want it.

This guide will help you get started with scripting.

Once you are familiar with the basics it will be easier to find help here on the scripts board.

I also recommend opening and having a look at one of the included enemy character .FPEs to see what kind of additional details you will need to be aware of.
Gigabyte P67A-UD4-B3, Intel Core i7 2600K (passmark 8555), 16GB Corsair DDR3, EVGA GTX 970 SC (passmark 8637), Win7 Pro 64-bit SP1, Primary monitor @ 1920x1080, secondary monitor @ 1024x1280

Login to post a reply

Server time is: 2024-12-22 01:11:59
Your offset time is: 2024-12-22 01:11:59