Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,388 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
invisible blocker not working #362717
03/09/11 13:56
03/09/11 13:56
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Hey guys,

I have a few blockers in my map, but when I make them invisible in WED they don't collide anymore. Don't understand why, here's the c_move function I use:

Code:
c_move(me, vector(distance * 1.5,distancestrafe * 1.2,0), NULL, GLIDE | IGNORE_PASSABLE);



So basically I just want invisible blocks that collide with ents (in this case I want to use it so the player can't move beyond the map borders).

Re: invisible blocker not working [Re: reknak] #362721
03/09/11 14:08
03/09/11 14:08

C
chris_oat
Unregistered
chris_oat
Unregistered
C



What is the NULL doing there?

Re: invisible blocker not working [Re: ] #362724
03/09/11 14:14
03/09/11 14:14
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
From manual;

c_move(ENTITY* entity,VECTOR* reldist,VECTOR* absdist,var mode)

The first vector reldist gives a relative distance and direction in rotated entity coordinates, i.e. the direction that the entity is facing. The second vector absdist gives an absolute distance and direction in world coordinates. The resulting movement is a combination of both distances. Normally the first vector is used for the propelling speed of the entity, and the second one for external forces, like gravity and drift. To zero one of these vectors, the predefined nullvector can be given.

Re: invisible blocker not working [Re: reknak] #362725
03/09/11 14:16
03/09/11 14:16
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Invisible blocks only work with AABB movement and maps, you have to set the None-Flag of the block's textures instead.
Or use an invisible map entity (or a model).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: invisible blocker not working [Re: Superku] #362742
03/09/11 15:00
03/09/11 15:00
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Many thanks Superku!


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1