AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   A way to reset my map, or the entities (https://forums.alliedmods.net/showthread.php?t=83640)

Arphenius 01-12-2009 19:40

A way to reset my map, or the entities
 
Hello, I made a map with some entities, and at the first round, they work very well. At the second round, some entities got bugged (some pendulums don't work well, same with rotating doors adapted to rotating floor). I want to know a way to reset all my map every round, or to make the entities reset every round, so they will not bug. Someone can help me?

Arphenius 01-14-2009 09:18

Re: A way to reset my map, or the entities
 
Well, I think a better way is to remove and add again the entities, but I don't know where I can search to make this. I never saw a complete functions list of AMXX, with description of how they work, nothing. Can someone help me? I'm totally lost here.

SnoW 01-14-2009 09:23

Re: A way to reset my map, or the entities
 
You should edit your old message, you weren't allowed to bump. -/
You made a map, and you wanna fix it with a plugin? Wouldn't it be little smarter to fix the map? I mean I have seen pretty many working maps, so I think you can get it working as well.

YamiKaitou 01-14-2009 09:51

Re: A way to reset my map, or the entities
 
Quote:

Originally Posted by Arphenius (Post 743943)
I never saw a complete functions list of AMXX, with description of how they work, nothing.

Just from this statement I can tell you didn't even look. I will provide you 2 links that show all AMXX functions.

Function Wiki
SVN of 1.8.1 scripting/includes folder

Arphenius 01-14-2009 10:18

Re: A way to reset my map, or the entities
 
Quote:

Originally Posted by SnoW (Post 743946)
You should edit your old message, you weren't allowed to bump. -/

Sorry, I looked at the FAQ and didn't found about bumping. Now, I know I can't bump. Thanks

Quote:

Originally Posted by SnoW (Post 743946)
You made a map, and you wanna fix it with a plugin? Wouldn't it be little smarter to fix the map? I mean I have seen pretty many working maps, so I think you can get it working as well.

Well, my map is like a deathrun map, but the traps activate automatically, no player is needed. The problem is, when a player die because of a trap (let's say a pendulum perpendicular to the ground, rotating 90º, and then back, in a perpendicular-paralel movement; the player gets compressed by the pendulum), the trap gets stuck, it do not move the way it should be moving. I don't know a way to reset the entities every round only using the mapping program, I only know how to stop the movement each round, and then activate it again, but this affect the pendulum, making it lose energy.

The way I found to fix this is by script, but I don't know how to do this.

Quote:

Originally Posted by YamiKaitou
Just from this statement I can tell you didn't even look. I will provide you 2 links that show all AMXX functions.

Function Wiki
SVN of 1.8.1 scripting/includes folder

Hey, I searched, but only searched this forum, don't remembered of AMXX site, sorry. And thanks =)


---------
I looked at the functions, and what I can say is by script, the entities are only invisible, like 3d boxes with nothing inside, this is true? And how do I work with an entity created in the map? In my case, I have some entities created with the mapping program, and I only need the script reset them (or deleting and then adding again). How can I do this?

Thank you all.


All times are GMT -4. The time now is 01:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.