Scripts / help scripting

Author
Message
code crusher
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: vienna , AT
Posted: 12th Mar 2015 21:36 Edited at: 12th Mar 2015 22:07
folow player



who can i find game guru lua specific commands ? or help file ?
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Mar 2015 23:54
check the guides on steam
for GG specific commands check the global.lua file in scriptbank folder
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
code crusher
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: vienna , AT
Posted: 13th Mar 2015 07:16
Thanks smallg.
I want to make script which allow enemy run away from you. Like a chasing quest.
but i don't know how can i do this.
Thanks
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Mar 2015 21:58
take a look here https://forum.game-guru.com/thread/207801?page=4#msg2500351
it's slightly more than your request but it does do that as well.

basically you just need to compare the 2 positions (player vs target) and then set the target's destination in the correct direction (it will end up being similar to your first script above)
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
code crusher
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: vienna , AT
Posted: 14th Mar 2015 00:03
thanks

Login to post a reply

Server time is: 2024-05-20 02:02:02
Your offset time is: 2024-05-20 02:02:02