Set Zombie walking to waypoints - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Set Zombie walking to waypoints (/thread-5212.html) Pages:
1
2
|
Set Zombie walking to waypoints - exit361 - 10-28-2010 Please i wanna set zombie to go on my coosed waypoints so tell me Script please and when he will dissapear when goes to end and when he will cyrcle around RE: Set Zombie walking to waypoints - Pandemoneus - 10-28-2010 Use the search function. http://www.frictionalgames.com/forum/search.php RE: Set Zombie walking to waypoints - exit361 - 10-29-2010 you know iam noob at scriptinb and this is what guy have in his own script AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation); this is it but i puted this to my hps file } AddEnemyPatrolNode("Brute_1", "Point_1, "0", ""); { and it writes ERROR RE: Set Zombie walking to waypoints - SLi78 - 10-29-2010 (10-29-2010, 03:10 PM)exit361 Wrote: you know iam noob at scriptinb and this is what guy have in his own script Well, i think it was already dicussed but numbers(int,float,byte...) values aren't set in "". You should use 0 or 0.0f, both should work. RE: Set Zombie walking to waypoints - ThePaSch - 10-29-2010 (10-29-2010, 03:10 PM)exit361 Wrote: }... I think you should read the basic scripting tutorial. http;//hpl2.frictionalgames.com RE: Set Zombie walking to waypoints - house - 10-29-2010 (10-29-2010, 03:10 PM)exit361 Wrote: you know iam noob at scriptinb and this is what guy have in his own script The }{ are mixed up. It should be: { AddEnemyPatrolNode("Brute_1", "Point_1, "0", ""); } By the way. The .hps script isn't complete. It should be something like: Code: void OnStart() Like that. RE: Set Zombie walking to waypoints - exit361 - 10-29-2010 Nothing ive tryed this and it astill writes me ERROR Unexcepted end of file RE: Set Zombie walking to waypoints - house - 10-29-2010 Oh!!!! I see whats wrong! Point_1 isn't closed in! In AddEnemyPatrolNode("Brute_1", "Point_1<---, "0", ""); It should be: AddEnemyPatrolNode("Brute_1", "Point_1", "0", ""); RE: Set Zombie walking to waypoints - Pandemoneus - 10-29-2010 0 shouldn't be in "" either. RE: Set Zombie walking to waypoints - exit361 - 10-29-2010 omg now it writes Expected Identifier and unexpected token { ('-.-) Ive gt this in my SCRIPT file lets see it void OnStart() { AddUseItemCallback("", "Klic", "mansion_1", "KeyOnDoor", true); AddUseItemCallback("", "Klic2", "mansion_4", "KeyOnDoor", true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true); } AddEnemyPatrolNode("Brute_1", "Point_1", 0.0f, ""); { Wheres mistake? Ive fixed that!! You dont have to put something to that script file if you dont want to set them specificaly to points you want you just have to put some points to your map then run it and when monster will hear sound then it will go to nearest point youve created!!! YEJJJJJ! |