Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
make cars appear
« previous
next »
Send this topic
Print
Pages: [
1
]
2
All
Go Down
Author
Topic: make cars appear (Read 1968 times)
0 Members and 1 Guest are viewing this topic.
marcus3
Guest
make cars appear
«
on:
16 Jan 2005, 22:27:05 »
ok now. i want it where when i radio alpha a car appears right beside me.
somebody know how to do this.
Logged
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #1 on:
16 Jan 2005, 22:35:55 »
Make your Radio Alpha trigger......
In the Activation field put:
fred = "nameofmysupercar" createvehicle getpos player
fred can be any name of your choosing, but the name in quotes must be the correct object name.
Planck
«
Last Edit: 16 Jan 2005, 22:36:36 by Planck
»
Logged
I know a little about a lot, and a lot about a little.
marcus3
Guest
Re:make cars appear
«
Reply #2 on:
16 Jan 2005, 22:39:10 »
it says "createvehicle" is un knowen
Logged
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #3 on:
16 Jan 2005, 22:50:08 »
What exactly are you typing in the On Activation field of your trigger?
Planck
Logged
I know a little about a lot, and a lot about a little.
marcus3
Guest
Re:make cars appear
«
Reply #4 on:
16 Jan 2005, 22:54:05 »
jason = "ferrari modena 360" createvehicle getpos player
and the same thing happens
Logged
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #5 on:
16 Jan 2005, 22:56:26 »
You need to find out the cars
proper
object name.
Look in its config.cpp.
As a test try this:
fred = "skoda" createvehicle getpos player
Planck
Logged
I know a little about a lot, and a lot about a little.
marcus3
Guest
Re:make cars appear
«
Reply #6 on:
16 Jan 2005, 23:09:49 »
ok i tried it and still says. un knowen opearator createvehicle. even with sportcar instead of skoda
i am playing opf ver 1.45 not res does that make a chang to things
«
Last Edit: 16 Jan 2005, 23:13:39 by marcus3
»
Logged
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #7 on:
16 Jan 2005, 23:13:31 »
But...............I have just tried the very same thing ingame........it works perfectly.
The default cars in OFP have the following class names:
Skoda
SkodaRed
SkodaGreen
SkodaBlue
Rapid
RapidY
The OFP sports car is in fact "Rapid" and the yellow one is "RapidY".
Planck
Logged
I know a little about a lot, and a lot about a little.
marcus3
Guest
Re:make cars appear
«
Reply #8 on:
16 Jan 2005, 23:18:06 »
I am playing opf ver 1.45 not res does that make a chang to things.
Logged
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
Re:make cars appear
«
Reply #9 on:
16 Jan 2005, 23:19:06 »
Note that the quotation marks need to be there when you write it in your trigger's on activation field.
fred =
"
skoda
"
createvehicle getpos player
Ah I see the version problem now. Try camcreate instead of createvehicle. camcreate should make the car totally useless though..
«
Last Edit: 16 Jan 2005, 23:20:20 by Artak
»
Logged
Not all is lost.
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #10 on:
16 Jan 2005, 23:22:54 »
It won't make a difference for the default OFP cars.......not too sure about the "Rapid" and "RapidY" though.
Also if the car you are trying is made for Resistance it might not work in 1.46.
However you will need to get the cars class name from the readme or config.
EDIT: createVehicle is ok for version 1.46
Planck
«
Last Edit: 16 Jan 2005, 23:24:15 by Planck
»
Logged
I know a little about a lot, and a lot about a little.
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
Re:make cars appear
«
Reply #11 on:
16 Jan 2005, 23:28:16 »
Quote
EDIT: createVehicle is ok for version 1.46
not for my 1.46 it's not. ;D
Logged
Not all is lost.
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #12 on:
16 Jan 2005, 23:36:06 »
Hmmmmm.........According to my comref it was introduced in version 1.34.
Have you tried it again recently Artak?
Planck
Logged
I know a little about a lot, and a lot about a little.
Planck
Honoured
Former Staff
I'm never wrong ....I'm just not always right !
Re:make cars appear
«
Reply #13 on:
16 Jan 2005, 23:42:01 »
Sorry Artak, but I just tried it in 1.46.......works ok here.
Try it again.
Planck
Logged
I know a little about a lot, and a lot about a little.
Triggerhappy
Contributing Member
Llama, it's what's for dinner.
Re:make cars appear
«
Reply #14 on:
17 Jan 2005, 00:35:21 »
well, seeing as marcus isn't typing in the config name of the vehicle, I'd say that's what his problem is....
Logged
Sliding plane crash script
Arrest script
Send this topic
Print
Pages: [
1
]
2
All
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
make cars appear
Top of page