Home   Help Search Login Register  

Author Topic: make cars appear  (Read 1966 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:make cars appear
« Reply #15 on: 17 Jan 2005, 06:05:00 »
Quote
well, seeing as marcus isn't typing in the config name of the vehicle, I'd say that's what his problem is....

Yes, but he also said he couldn't get "skoda" to work either.

Unless he mistyped it.


Planck
I know a little about a lot, and a lot about a little.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:make cars appear
« Reply #16 on: 17 Jan 2005, 06:50:09 »
ah, i misread his post

maybe he is getting the syntax wrong

copy this exactly from the post:

tommy = "jeep" createvehicle [(getpos player select 0) + 10,getpos player select 1,0]


if that doesn't work then you won't be able to use createvehicle



Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:make cars appear
« Reply #17 on: 17 Jan 2005, 09:45:57 »
Yeah Planck, I just tried it earlier. That's why I was so sure to say the command wasn't working with 1.46  :o
Not all is lost.

marcus3

  • Guest
Re:make cars appear
« Reply #18 on: 17 Jan 2005, 11:28:34 »
dang. i cant get it to work it says. "unknowen operator createvehicle"
so i guess i just need to wait for my copy of res to get here o well. thanks for your time.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:make cars appear
« Reply #19 on: 17 Jan 2005, 11:55:52 »
Creating things usually does work.  To get round this while you find a solution why not put the car on some offshore island and setPos it to where you want it when you want it to appear
« Last Edit: 17 Jan 2005, 11:56:52 by THobson »

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:make cars appear
« Reply #20 on: 17 Jan 2005, 12:11:13 »
Quote
unit = "skoda" createvehicle (getpos player)

Curse of the missing brackets, maybe? ;)

marcus3

  • Guest
Re:make cars appear
« Reply #21 on: 17 Jan 2005, 12:16:30 »
nope still dont work. thats crap my PC must be goofing up.dang. is there some other way to do this?

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:make cars appear
« Reply #22 on: 17 Jan 2005, 12:56:36 »
You maybe missed my earlier post

Quote
Creating things usually does work.  To get round this while you find a solution why not put the car on some offshore island and setPos it to where you want it when you want it to appear

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:make cars appear
« Reply #23 on: 17 Jan 2005, 16:24:32 »
yep THobson is right, setPos is the way to go. I remember quite surely, cause I used that trick quite a lot in those days.
Get those missions out there you morons!

marcus3

  • Guest
Re:make cars appear
« Reply #24 on: 18 Jan 2005, 00:26:21 »
ok i tried the setPos thing and no go. how do you do it the right way i put in the A field.
Car setPos Jason
and some junk comes up on top.
« Last Edit: 18 Jan 2005, 00:28:04 by marcus3 »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:make cars appear
« Reply #25 on: 18 Jan 2005, 00:41:28 »
jason is a unit not a position.

car setPos getPos jason
would put the car on top of jason

car setPos [(getPos jason select 0)+5*sin(getDir jason),(getPos jason select 1)-5*cos(getDir jason),0]

would put the car 5 meters to jason's right.

Bye the way it is not junk.  Find the #and that is where the error is.  The text tells you what the error is.

marcus3

  • Guest
Re:make cars appear
« Reply #26 on: 18 Jan 2005, 02:29:09 »
ok its not junk sorry. that works but then i cant get in the car. that sucks some way to fix that???

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:make cars appear
« Reply #27 on: 18 Jan 2005, 02:52:18 »
unlock it

when you place it it has the option of having it locked (don't lock it and there you go)

marcus3

  • Guest
Re:make cars appear
« Reply #28 on: 18 Jan 2005, 03:09:37 »
ok is working now. (i gotta quit drinking befor i play) kidding ;D
but all is as i wood like it do be so everbody. your dumb. kidding.
thanks