UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How to move an array of stuff?

broken avatar :(
Created 9 years ago
by IperBreach86
0 Members and 1 Guest are viewing this topic.
1,708 views
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 4 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
Hi there guys, since im relatively new to scripting ill post my problem here:

Im making a crane with the pap on top, and when triggered it lwoers the pap
but when i trigger it it doesnt work, probably because i cant move an array of entities with just moveZ
this is how it looks:
Code Snippet
Plaintext
SetupFuses()
{
self SetCursorHint( "HINT_NOICON" );
self setHintString(" Press and Hold &&1 to fix the cables ");
self waittill("trigger", who);
iPrintLn(" trig");
level.fuseboxes--;
if(level.fuseboxes<=0)
{
pap = getEntArray("pap_lift","targetname");
iPrintLn(" another test");
pap MoveZ(-632,5);
}
self disable_trigger();
}

The script is longer, ive just placed the trigger function :D
Hope to get answer soon :D
Last Edit: March 19, 2016, 04:01:30 pm by IperBreach86
Marked as best answer by IperBreach86 9 years ago
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 1 year ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Code Snippet
Plaintext
SetupFuses()
{
pap = getEntArray("pap_lift","targetname");
self SetCursorHint( "HINT_NOICON" );
self setHintString(" Press and Hold &&1 to fix the cables ");
self waittill("trigger", who);
iPrintLn(" trig");
level.fuseboxes--;
if(level.fuseboxes<=0)
{
iPrintLn(" another test");
for ( i = 0; i < pap.size; i++ )
{
pap[i] MoveZ(-632,5);
}
}
self disable_trigger();
}
broken avatar :(
×
broken avatar :(
Location: it
Date Registered: 5 September 2014
Last active: 4 years ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social LinksIperBreach86
Code Snippet
Plaintext
SetupFuses()
{
pap = getEntArray("pap_lift","targetname");
self SetCursorHint( "HINT_NOICON" );
self setHintString(" Press and Hold &&1 to fix the cables ");
self waittill("trigger", who);
iPrintLn(" trig");
level.fuseboxes--;
if(level.fuseboxes<=0)
{
iPrintLn(" another test");
for ( i = 0; i < pap.size; i++ )
{
pap[i] MoveZ(-632,5);
}
}
self disable_trigger();
}
Thank you very much! it works :D

 
Loading ...