Raised This Month: $ Target: $400
 0% 

sequence


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maza51
Senior Member
Join Date: Mar 2010
Old 01-31-2011 , 00:32   sequence
Reply With Quote #1

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..
}
maza51 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 01-31-2011 , 01:28   Re: sequence
Reply With Quote #2

PHP Code:
if (...)
{
   ...
}
else if (...)
{
   ...

__________________

Last edited by FaTony; 01-31-2011 at 01:34.
FaTony is offline
maza51
Senior Member
Join Date: Mar 2010
Old 01-31-2011 , 01:33   Re: sequence
Reply With Quote #3

???
maza51 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 01-31-2011 , 01:35   Re: sequence
Reply With Quote #4

How do I foo bar?

Give context.
__________________
FaTony is offline
snipercup
Junior Member
Join Date: Nov 2010
Old 01-31-2011 , 01:47   Re: sequence
Reply With Quote #5

Quote:
Originally Posted by maza51 View Post
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

snipercup is offline
maza51
Senior Member
Join Date: Mar 2010
Old 01-31-2011 , 02:58   Re: sequence
Reply With Quote #6

I have it ..

I need to make a sequence!

Example:

PHP Code:

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

maza51 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 01-31-2011 , 03:17   Re: sequence
Reply With Quote #7

We can't read your mind. Post the whole code you've got so far.
__________________
FaTony is offline
maza51
Senior Member
Join Date: Mar 2010
Old 01-31-2011 , 03:21   Re: sequence
Reply With Quote #8

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


I do not know how else to explain ..
maza51 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 01-31-2011 , 04:53   Re: sequence
Reply With Quote #9

PHP Code:
HookEntityOutput("trigger_multiple""OnStartTouch"callback); 
</span>
__________________
FaTony is offline
maza51
Senior Member
Join Date: Mar 2010
Old 01-31-2011 , 05:35   Re: sequence
Reply With Quote #10

I do not trigger_multiple. I have done this way.
http://forums.alliedmods.net/showthr...igger_multiple
maza51 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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