OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: WizzyWig on 27 Apr 2003, 03:02:11

Title: Point to point jump help
Post by: WizzyWig on 27 Apr 2003, 03:02:11
i need help ok the jump script works "just" but for some strange reasion when i get a team member to open the jump the ofp engine pulls me in even if im on the outher side of the map can any one sugest a fix or a brand new script all togeher i feel the need to thank the admins and users of this board for all the great help you have proided me this over the past mounth or so i hope some one can help

initserver.sqs

Code: [Select]
FIXED
InitserverReceive

Code: [Select]
FIXED
Portal2.sqs

Code: [Select]
FIXED
Title: Re:Point to point jump help
Post by: WizzyWig on 29 Apr 2003, 20:01:53
ok i have fixed the script now i need help i dont now how to set a action that only one team can use.

exsample:::::

ok say your West when you walk up to the stargate u get a option to open iris action come up (my script in side of addon)

what  i would like to do is if East walk up to gate thay dont get the option to open the iris  is this posible to do inside of the Pbo file or just with the script please help dudes
Title: Re:Point to point jump help
Post by: WizzyWig on 01 May 2003, 20:32:00
Code: [Select]
; scripted by wizzywig
_uav1 = _this select 0
_Who = _this select 1
_unit = _this select 0
_malp = _this select 0

pubStartDoor = true

uav1 SetPos (Getpos gate2)
malp SetPos (Getpos gate2)

ok how do i make my script set the hight when i use this script to make my unit jump from one end of map the the other can i also set the hight i hope some one can help with this.

thanks
 
i tryed the _uav1  setpos [ (getpos _uav1 select 0), (getpos _uav1 select 1), 0]

but all this is doing it moveing the uav to the addon and lifting my addon and putting the uav under it how do i fix this???
Title: Re:Point to point jump help
Post by: macguba on 01 May 2003, 23:02:04
To change the height try something like this:-

_uav1  setpos [ (getpos _uav1 select 0), (getpos _uav1 select 1), (getpos _uav1 select 2) + X]

where X is the height you want.
Title: Re:Point to point jump help
Post by: WizzyWig on 02 May 2003, 09:19:23
i tryed that but it moves my addon in the air and puts the uav under it on the ground
Title: Re:Point to point jump help
Post by: WizzyWig on 05 May 2003, 12:33:24
look i did a ss this is what it dose whne i run the set position
Title: Re:Point to point jump help
Post by: Pliskin on 05 May 2003, 16:07:05
what the hell is that ?
Cheaply Star Trek ?  ???
Title: Re:Point to point jump help
Post by: WizzyWig on 05 May 2003, 22:47:04
No not startrek but stargate the problem i have is when i use the send uav script it dose what the pic shows all the units in the script
I.E.

the gate is a transporter ===== you activate it then jump to the other gate point-to-point.

now i have got the human jump working great my problem is i would like to script in a point-to-point jump for my cars or aircraft  so when i use the activat uav jump it send the car/air unit to the other gate but i just bundals all the units in the script on one spot. its not working as it should be i would like it to set the posistion or the unit just out side of the outher gate because my script puts even the human unit inside of the outher gate but the gates stay fixed in place and the jump works.


::::::::::Q's:::::::::::

1) how do i set the hight and posistion in a Point-to-point jump?

2) do u have a working addon with this script i need in it?

3) if you can help how soon can you help?

4) do you know stargate if so you will know what i mean?

5) can you make tea if so go make one and think about it



:::::::::::::::::::::::::THANKS:::::::::::::::::::::::::::::

Title: Re:Point to point jump help
Post by: WizzyWig on 06 May 2003, 18:35:18
**BUMP**


need help soon
Title: Re:Point to point jump help
Post by: WizzyWig on 07 May 2003, 18:55:53
splutter splutter

sorry got cold and ops i bumped this again i realy need help dudes




**BUMP**
Title: Re:Point to point jump help
Post by: Necris on 16 May 2003, 21:02:25
I think it must be:

_uav1  setpos [ (getpos _uav1 select 0), (getpos _uav1 select 1), (getpos _uav1 select 2)] + X

Title: Re:Point to point jump help
Post by: WizzyWig on 17 May 2003, 13:22:04
ok i did say i think that i have the moveing the uav pard done it jumps but what i need is for the jump to after the jump is compleat its it rise it up to drive down a ramp all so needed for the jumpers
 
Title: Re:Point to point jump help
Post by: WizzyWig on 19 May 2003, 14:58:02
*kinda a bump*

im still looking for help as i said the jump works cool i just want a script that sets the pos about 2m above the ground to stop my units a craft droping into the gate addon i maid

i hope you can help
Title: Re:Point to point jump help
Post by: Fox2 on 20 May 2003, 14:40:51
unit setpos [(getpos gate2 select 0), (getpos gate2 select 1), 2]

That will put whatever "unit" is at gate2's exact position, except 2 meters above the ground.