![]() |
Consple Code Help! - Версия для печати +- Город Джунов (https://www.gipat.ru/forum) +-- Форум English-speaking Diaspora (https://www.gipat.ru/forum/forum-22.html) +--- Форум General Discussion (https://www.gipat.ru/forum/forum-13.html) +--- Темы: Consple Code Help! (/thread-1633.html) |
Consple Code Help! - Kaitakkas - 05.11.2003 I need to find out how to use the @addunittoserver code to make a creature follow you. (if possible) where would i put the part to make the creature follow me in this: @AddUnitToServer("Orc","LMP Orc Fighter 8","Orc",GetX(GetLeader()),GetY(GetLeader()),0) that makes an orc, but it just sits there! help! ![]() Consple Code Help! - Mephisto - 05.11.2003 Well you actually need to write another console line.Dont remember what exactly but i think that this: @UMFollow(GetObject(id),GetLeader()) With this comand object which you specify will follow the leader , means you. @UMFollow(objUnitA,objUnitB) Description: Unit A will follow unit B. Notice that you can use procedure @Follow(objUnitA,objUnitB) , but in this case , when the unit A attacks someone , it wont follow you anymore.But using @UMFollow unit A will follow always. Consple Code Help! - Kaitakkas - 09.11.2003 when i use @UMFollow(GetObject(id),GetLeader()) what goes in the (id) part? LMP Orc Fighter 8? or Orc? :o :dies: Consple Code Help! - Mephisto - 09.11.2003 You use object identificator. If you enter in console filter ai , when you encounter enemies , you will see their identificator.Eg 4560 or 100000233. Consple Code Help! - Kaitakkas - 11.11.2003 thanks for your help i think i got it now XD these codes are so simple once u put them in a .txt file and exec them from the game lol :ph34r: Consple Code Help! - Mephisto - 11.11.2003 Цитата:thanks for your help i thinkFeel free to ask about console commands ![]() Consple Code Help! - TheWarrior - 15.11.2003 except stuff how to make urself creatures and get money, exp etc since its that way (the non cheating way) i wont do anything Consple Code Help! - Guest - 06.02.2004 nice ![]() Consple Code Help! - Guest - 28.05.2007 Hey I was wondering if theres anyway to change the HP of the unit spawned, as it always spawns with 1hp. Seems to be relevant to the topic so I thought I would add it in here. Thanks. Consple Code Help! - Guest - 08.06.2008 Me too i'd like to know how they could have their real HP. I'm also having a bit of trouble making the monster follow me right now. He fights for me but isn't following hehe. Consple Code Help! - Guest - 11.06.2008 >>Me too i'd like to know how they could have their real HP. Impossible. Consple Code Help! - SnAIper - 19.06.2008 Merlin,Воскресенье, 08 Июня 2008, 07:41 Написал:Me too i'd like to know how they could have their real HP.You must use AddMob, but this method is limited by amount of "mob" files in your EIMaps folder ^_^ Of cource, you have no choise if you want to place some monsters onto the map. PS: Idea of unlimited respawn is impossible ![]() PPS: to make unit follow you: clear his motivation via command "UMClear(Unit)", then order him to follow you: "UMFollow(Unit, GetLeader())". If it wouldn't work, use this combination with "UMPlayer" instead of "UMClear" ![]() Consple Code Help! - chapapote - 21.07.2010 The problem with the hit points is still unsolved. By the way, where could I get the names of the monsters? |