Home   Help Search Login Register  

Author Topic: names on objects :)  (Read 435 times)

0 Members and 1 Guest are viewing this topic.

PimpD

  • Guest
names on objects :)
« on: 22 Aug 2003, 00:30:17 »
Hey anyone know a complete list of objects in the game?

Im trying to use the respawn thing for vehicle in mp.

My problem is that it says invalid object name or something :)
Im trying to make my ammo truck, refuel truck and repair truck to respawn.
And my heli's :p but all got wrong names, so I cant respawn them :(

I tried

Ammo truck - ammotruck ;o
Refuel truck - Refueltruck
Repair truck - repairtruck

well that didnt work :)
so Anyone, please .. got a complete list of objects in OFP?  ;D

B-2-0

  • Guest
Re:names on objects :)
« Reply #1 on: 22 Aug 2003, 03:02:10 »
The object (or vehicle in this case) name is whatever u call it when u place it.

I would head over to the editors dept and pick up a vehicle respawn tute.

This only works for SP games (i think), but try it anyway:

;To execute, enter into each vehicle init field:  [NAME-OF-YOUR-VEHICLE-HERE,40] exec "Vehiclerespawn.sqs"

Copy this into a notepad and call it Vehiclerespawn.sqs  then put it into your mission folder.

;----------------------------------------------------------------
?!(local server) : exit
_vehic = _this select 0
_time = _this select 1
_type = typeof _vehic
_pos = getpos _vehic
_dir = getdir _vehic

#loop
_vehic addEventHandler ["killed", {[[0,0,0],[0,0,0],60,3+random 3,_this select 0] exec "\KEGnoecain_snow\script\destroy.sqs"}]
@!(alive _vehic)
~_time
deletevehicle _vehic
_vehic = _type createvehicle [0,0]
_vehic setpos _pos
_vehic setdir _dir
_vehic setdamage 0
goto "loop"
;--------------------------------------------------------------------------

Now preview and take a LAW to your vehicle and it will explode, burn for a while and respawn wherever u placed it in 40 seconds.
« Last Edit: 22 Aug 2003, 03:08:12 by B-2-0 »

PimpD

  • Guest
Re:names on objects :)
« Reply #2 on: 22 Aug 2003, 15:05:05 »
I can't name it whatever I want :(

When its about 2 respawn the game shuts down and a pop up says

Invalid Vehicle name "the name i took"