View previous topic :: View next topic |
Author |
Message |
Frog_808
New Member


Joined: 13 May 2020 Posts: 20
55 Bank Notes
Items
|
|
Hello,
can someone tell me what the "event" command in the script does?
The script reference says "subroutine", but that tells me nothing.
I would be very grateful. |
|
Back to top |
|
 |
AsaSK
Mafiascene Veteran Modder


Joined: 24 Feb 2013 Posts: 794 Location: London, England 12028 Bank Notes
Items
|
|
Hi Frog,
The 'event'/'setevent' command is used by one script to jump to another. In script A, 'setevent' is used and in script B, 'event' is used.
Syntax:
setevent xx, yy, zz
- xx: script to jump to (actor)
- yy: event name to trigger in script xx
- zz: set to '-1'
event xx
- xx: event name
Example - script A:
Code: | dim_act 2
findactor 0, "Tommy"
findactor 1, "scriptB"
wait 1000
setevent 1, FROG, -1 |
Example - script B:
Code: | dim_act 1
findactor 0, "Tommy"
wait 1000
event FROG
//whatever you want to happen |
There are also pre-programmed events, such as 'event use_ab', etc. Hope this helps. _________________
The official Mafioso Mod thread |
|
Back to top |
|
 |
Frog_808
New Member


Joined: 13 May 2020 Posts: 20
55 Bank Notes
Items
|
|
Oh, thank you very much!!  |
|
Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|