AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   sequence (https://forums.alliedmods.net/showthread.php?t=148942)

maza51 01-31-2011 00:32

sequence
 
How to make a sequence?

For example:

if I moved from point A to point B
{
then..
}
else if I moved from point C to point B
{
then..
}

FaTony 01-31-2011 01:28

Re: sequence
 
PHP Code:

if (...)
{
   ...
}
else if (...)
{
   ...



maza51 01-31-2011 01:33

Re: sequence
 
???

FaTony 01-31-2011 01:35

Re: sequence
 
How do I foo bar?

Give context.

snipercup 01-31-2011 01:47

Re: sequence
 
Quote:

Originally Posted by maza51 (Post 1403558)
How to make a sequence?

For example:

if I moved from point A to point B
{
then..
}
else if I moved from point C to point B
{
then..
}

In both cases you are moving to point B. I assume you already know when it happens, and do not need to hook the event (for example you use a teleport fuction that can be called)

You would have to know if the user moved from point A or point C. Are these positions defined (as in coordinates)? If not, you would have to find a way to get the user's current location.

PHP Code:

new loc getplayerlocation~

If (
loc == locA) {
code here
}
else if (
loc == locB) {
code here



maza51 01-31-2011 02:58

Re: sequence
 
I have it ..

I need to make a sequence!

Example:

PHP Code:


If (locA moved to locB) {
code here
}
else{
code here



FaTony 01-31-2011 03:17

Re: sequence
 
We can't read your mind. Post the whole code you've got so far.

maza51 01-31-2011 03:21

Re: sequence
 
Я обьясню тебе по Русски. У меня два триггера. Если игрок из первого во второй войдет, должно быть условие, а если он сразу во второй войдет, то ничего не будет. Я не знаю как еще обьяснить..


I do not know how else to explain ..

FaTony 01-31-2011 04:53

Re: sequence
 
PHP Code:

HookEntityOutput("trigger_multiple""OnStartTouch"callback); 

</span>

maza51 01-31-2011 05:35

Re: sequence
 
I do not trigger_multiple. I have done this way.
http://forums.alliedmods.net/showthr...igger_multiple


All times are GMT -4. The time now is 14:26.

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